diff options
author | terry%mozilla.org <> | 1999-05-11 07:52:43 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-11 07:52:43 +0200 |
commit | 2154a3e1137e8888d7f4a313bed7914018dde4d8 (patch) | |
tree | eacc602a0a084e0c40240ad8f20229b8c61d4392 /show_bug.cgi | |
parent | 13e5b8e6088a89215f429c296d6550727761de8c (diff) | |
download | bugzilla-2154a3e1137e8888d7f4a313bed7914018dde4d8.tar.gz bugzilla-2154a3e1137e8888d7f4a313bed7914018dde4d8.tar.xz |
Do some sanity checking on the entered bug number.
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-x | show_bug.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 803e1a07e..b2e747297 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 "<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"; |