From: gerv%gerv.net <> Date: Tue, 23 Jul 2002 14:16:57 +0000 (+0000) Subject: Bug 96003 - buglist.cgi should not return all bugs if called without any parameters... X-Git-Tag: bugzilla-2.17.1~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0296e8df4fec8f7183520840e79cdd7e4da927b;p=thirdparty%2Fbugzilla.git Bug 96003 - buglist.cgi should not return all bugs if called without any parameters. Patch by gerv; r=myk. --- diff --git a/buglist.cgi b/buglist.cgi index 46c26fd16e..aa9cfb7eb8 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(); ################################################################################