From 37f205201119191b2a638087fad8e09327f5f1d5 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Sat, 8 Jun 2002 03:58:30 +0000 Subject: [PATCH] Fix for bug 148993: Makes debug work in the query part of buglist.cgi. Patch by Bradley Baetz . r=gerv,myk --- buglist.cgi | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.47.3