aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-06-08 03:58:30 +0000
committermyk%mozilla.org <>2002-06-08 03:58:30 +0000
commit37f205201119191b2a638087fad8e09327f5f1d5 (patch)
tree5a7afa6dc932c140bf6cb6d48b45544df5d3f45a /buglist.cgi
parentFix for bug 149964 - quietly_check_login() needs to be called in colchange.cg... (diff)
downloadbugzilla-37f205201119191b2a638087fad8e09327f5f1d5.tar.gz
bugzilla-37f205201119191b2a638087fad8e09327f5f1d5.tar.bz2
bugzilla-37f205201119191b2a638087fad8e09327f5f1d5.zip
Fix for bug 148993: Makes debug work in the query part of buglist.cgi.
Patch by Bradley Baetz <bbaetz@student.usyd.edu.au>. r=gerv,myk
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi
index b7fb72a69..917103fc2 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);