summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-07-23 16:16:57 +0200
committergerv%gerv.net <>2002-07-23 16:16:57 +0200
commitc0296e8df4fec8f7183520840e79cdd7e4da927b (patch)
tree5256432c5c8dd8ec2f1ed64b93d7315d55602c4f
parent56988d23675f167fa3661535f9f30b658576caad (diff)
downloadbugzilla-c0296e8df4fec8f7183520840e79cdd7e4da927b.tar.gz
bugzilla-c0296e8df4fec8f7183520840e79cdd7e4da927b.tar.xz
Bug 96003 - buglist.cgi should not return all bugs if called without any parameters. Patch by gerv; r=myk.
-rwxr-xr-xbuglist.cgi14
1 files changed, 14 insertions, 0 deletions
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();
################################################################################