summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authorterry%netscape.com <>1998-11-17 04:43:49 +0100
committerterry%netscape.com <>1998-11-17 04:43:49 +0100
commit0ca30382be83fccfc4e352096c87c56bbf8a673c (patch)
tree36342c8de0050b5bed4b67b29a14eb97e78c5e28 /show_bug.cgi
parent1cf02cc7c177a691ae9980f928ae30efb84a8c99 (diff)
downloadbugzilla-0ca30382be83fccfc4e352096c87c56bbf8a673c.tar.gz
bugzilla-0ca30382be83fccfc4e352096c87c56bbf8a673c.tar.xz
Patch by Andrew Anderson <andrew@redhat.com>. Many minor bugfixes and cleanup.
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi15
1 files changed, 9 insertions, 6 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 98829e356..06e02da2b 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -22,16 +22,19 @@
use diagnostics;
use strict;
-print "Content-type: text/html\n";
-print "\n";
+use vars @::FORM;
require "CGI.pl";
-if (!defined $::FORM{'id'}) {
- print "<H2>Search By Bug Number</H2>\n";
- print "<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n";
+confirm_login();
+
+print "Content-type: text/html\n\n";
+
+if (!defined $::FORM{'id'} || $::FORM{'id'} eq "") {
+ PutHeader("Search By Bug Number", "Search By Bug Number", "");
+ print "<FORM METHOD=\"GET\" ACTION=\"show_bug.cgi\">\n";
print "You may find a single bug by entering its bug id here: \n";
- print "<INPUT NAME=id>\n";
+ print "<INPUT NAME=\"id\">\n";
print "<INPUT TYPE=\"submit\" VALUE=\"Show Me This Bug\">\n";
print "</FORM>\n";
exit;