Commit 2154a3e1 authored by terry%mozilla.org's avatar terry%mozilla.org

Do some sanity checking on the entered bug number.

parent 13e5b8e6
......@@ -33,7 +33,7 @@ if ($::FORM{'GoAheadAndLogIn'}) {
print "Content-type: text/html\n";
print "\n";
if (!defined $::FORM{'id'}) {
if (!defined $::FORM{'id'} || $::FORM{'id'} !~ /^\s*\d+\s*$/) {
print "<H2>Search By Bug Number</H2>\n";
print "<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n";
print "You may find a single bug by entering its bug id here: \n";
......
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