summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-08-14 04:11:31 +0200
committerjake%acutex.net <>2001-08-14 04:11:31 +0200
commit669eed6c9dcf6300c3e3f5db1970f2a26c5317e6 (patch)
tree5b644d59f328f95993909050b666f2a3cafecfb9 /CGI.pl
parent45e6db585277cc4bbd44a3242c082b3354bb27a3 (diff)
downloadbugzilla-669eed6c9dcf6300c3e3f5db1970f2a26c5317e6.tar.gz
bugzilla-669eed6c9dcf6300c3e3f5db1970f2a26c5317e6.tar.xz
Fix for bug 95082 - Param('shutdownhtml') doesn't completely shut down bugzilla.
r= justdave@syndicomm.com
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl19
1 files changed, 16 insertions, 3 deletions
diff --git a/CGI.pl b/CGI.pl
index 5a86b7ad1..fb3d0178d 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -962,7 +962,7 @@ Content-type: text/html
exit();
}
print "Content-type: text/html\n\n";
- PutHeader("Login", undef, undef, undef, 1);
+ PutHeader("Login");
if(Param("useLDAP")) {
print "I need a legitimate LDAP username and password to continue.\n";
} else {
@@ -1059,7 +1059,7 @@ Content-type: text/html
sub PutHeader {
- my ($title, $h1, $h2, $extra, $ignoreshutdown, $jscript) = (@_);
+ my ($title, $h1, $h2, $extra, $jscript) = (@_);
if (!defined $h1) {
$h1 = $title;
@@ -1071,6 +1071,16 @@ sub PutHeader {
$extra = "";
}
$jscript ||= "";
+ # If we are shutdown, we want a very basic page to give that
+ # information. Also, the page title should indicate that
+ # we are down.
+ if (Param('shutdownhtml')) {
+ $title = "Bugzilla is Down";
+ $h1 = "Bugzilla is currently down";
+ $h2 = "";
+ $extra = "";
+ $jscript = "";
+ }
print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n";
print Param("headerhtml") . "\n$jscript\n</HEAD>\n";
@@ -1094,7 +1104,10 @@ sub PutHeader {
print "</TD></TR></TABLE>\n";
if (Param("shutdownhtml")) {
- if (!$ignoreshutdown) {
+ # If we are dealing with the params page, we want
+ # to ignore shutdownhtml
+ if ($0 !~ m:[\\/](do)?editparams.cgi$:) {
+ print "<p>\n";
print Param("shutdownhtml");
exit;
}