From: lpsolit%gmail.com <> Date: Wed, 8 Feb 2006 06:46:28 +0000 (+0000) Subject: Bug 324346: When 'shutdownhtml' is set, accessing foo.cgi?format=bar displays plain... X-Git-Tag: bugzilla-2.22rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2a857f7732d5c6df84d105d33229c2d93b7c3b8;p=thirdparty%2Fbugzilla.git Bug 324346: When 'shutdownhtml' is set, accessing foo.cgi?format=bar displays plain text instead of html - Patch by Frédéric Buclin r=mkanat a=myk --- diff --git a/Bugzilla.pm b/Bugzilla.pm index 86d6e6e70d..2a0a660148 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -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 {