aboutsummaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-11 05:52:43 +0000
committerterry%mozilla.org <>1999-05-11 05:52:43 +0000
commit2154a3e1137e8888d7f4a313bed7914018dde4d8 (patch)
treeeacc602a0a084e0c40240ad8f20229b8c61d4392 /show_bug.cgi
parent13e5b8e6088a89215f429c296d6550727761de8c (diff)
downloadbugs-2154a3e1137e8888d7f4a313bed7914018dde4d8.tar
bugs-2154a3e1137e8888d7f4a313bed7914018dde4d8.tar.gz
bugs-2154a3e1137e8888d7f4a313bed7914018dde4d8.tar.bz2
bugs-2154a3e1137e8888d7f4a313bed7914018dde4d8.tar.xz
bugs-2154a3e1137e8888d7f4a313bed7914018dde4d8.zip
Do some sanity checking on the entered bug number.
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi2
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";