]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Do some sanity checking on the entered bug number.
authorterry%mozilla.org <>
Tue, 11 May 1999 05:52:43 +0000 (05:52 +0000)
committerterry%mozilla.org <>
Tue, 11 May 1999 05:52:43 +0000 (05:52 +0000)
show_bug.cgi

index 803e1a07e167b3aa855273023e99986fccf921a1..b2e7472972361df1baa6d029bad5ffc551cf56c9 100755 (executable)
@@ -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";