From c0296e8df4fec8f7183520840e79cdd7e4da927b Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Tue, 23 Jul 2002 14:16:57 +0000 Subject: Bug 96003 - buglist.cgi should not return all bugs if called without any parameters. Patch by gerv; r=myk. --- buglist.cgi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 46c26fd16..aa9cfb7eb 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -61,6 +61,20 @@ sub sillyness { $zz = @::versions; }; +if (length($::buffer) == 0) { + $vars->{'title'} = "Parameters Required"; + $vars->{'message'} = "This script is not meant to be invoked without any + search terms."; + $vars->{'url'} = "query.cgi"; + $vars->{'link'} = "Please use the search form to specify some search + criteria."; + print "Refresh: 10; URL=query.cgi\n"; + print "Content-Type: text/html\n\n"; + $template->process("global/message.html.tmpl", $vars) + || ThrowTemplateError($template->error()); + exit; +} + ConnectToDatabase(); ################################################################################ -- cgit v1.2.3-24-g4f1b