From: myk%mozilla.org <> Date: Sat, 8 Jun 2002 03:58:30 +0000 (+0000) Subject: Fix for bug 148993: Makes debug work in the query part of buglist.cgi. X-Git-Tag: bugzilla-2.16rc2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37f205201119191b2a638087fad8e09327f5f1d5;p=thirdparty%2Fbugzilla.git Fix for bug 148993: Makes debug work in the query part of buglist.cgi. Patch by Bradley Baetz . r=gerv,myk --- diff --git a/buglist.cgi b/buglist.cgi index b7fb72a69f..917103fc22 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -815,6 +815,13 @@ sub GenerateSQL { push(@funcnames, $key); } + if ($debug) { + # If we're going to be printing debug stuff, we need the content + # type. This doesn't affect later stuff, because we call exit, and + # never return from this sub + print "Content-Type: text/html\n\n"; + } + # first we delete any sign of "Chart #-1" from the HTML form hash # since we want to guarantee the user didn't hide something here my @badcharts = grep /^(field|type|value)-1-/, (keys %F);