Commit c0296e8d authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 96003 - buglist.cgi should not return all bugs if called without any…

Bug 96003 - buglist.cgi should not return all bugs if called without any parameters. Patch by gerv; r=myk.
parent 56988d23
......@@ -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();
################################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment