From: terry%mozilla.org <> Date: Tue, 11 May 1999 05:52:43 +0000 (+0000) Subject: Do some sanity checking on the entered bug number. X-Git-Tag: bugzilla-2.6~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2154a3e1137e8888d7f4a313bed7914018dde4d8;p=thirdparty%2Fbugzilla.git Do some sanity checking on the entered bug number. --- diff --git a/show_bug.cgi b/show_bug.cgi index 803e1a07e1..b2e7472972 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -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 "

Search By Bug Number

\n"; print "
\n"; print "You may find a single bug by entering its bug id here: \n";