summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
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'});