summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-05-11 07:08:58 +0200
committerterry%mozilla.org <>1999-05-11 07:08:58 +0200
commit2adbacb8d2604dc7888216537c248b30cde1128e (patch)
treee95cc07bb2c96b059def284267f12a372b9c91e1 /show_bug.cgi
parentfc6da409f24abe6818ddeaaa75e949da369885f1 (diff)
downloadbugzilla-2adbacb8d2604dc7888216537c248b30cde1128e.tar.gz
bugzilla-2adbacb8d2604dc7888216537c248b30cde1128e.tar.xz
Give better error messages when we can't display a bug.
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi12
1 files changed, 8 insertions, 4 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 75a3bb8e3..803e1a07e 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -22,11 +22,17 @@
use diagnostics;
use strict;
+require "CGI.pl";
+
+ConnectToDatabase();
+
+if ($::FORM{'GoAheadAndLogIn'}) {
+ confirm_login();
+}
+
print "Content-type: text/html\n";
print "\n";
-require "CGI.pl";
-
if (!defined $::FORM{'id'}) {
print "<H2>Search By Bug Number</H2>\n";
print "<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n";
@@ -37,8 +43,6 @@ if (!defined $::FORM{'id'}) {
exit;
}
-ConnectToDatabase();
-
GetVersionTable();
PutHeader("Bugzilla bug $::FORM{'id'}", "Bugzilla Bug", $::FORM{'id'});