Bug 324346: When 'shutdownhtml' is set, accessing foo.cgi?format=bar displays plain text instead of html - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
git-svn-id: svn://10.0.0.236/trunk@189365 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -94,8 +94,8 @@ if (!$^C
|
||||
# Generate and return a message about the downtime, appropriately
|
||||
# for if we're a command-line script or a CGI sript.
|
||||
my $extension;
|
||||
if (i_am_cgi() && (!Bugzilla->cgi->param('format')
|
||||
|| Bugzilla->cgi->param('format') eq 'html')) {
|
||||
if (i_am_cgi() && (!Bugzilla->cgi->param('ctype')
|
||||
|| Bugzilla->cgi->param('ctype') eq 'html')) {
|
||||
$extension = 'html';
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user