]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 148993: Makes debug work in the query part of buglist.cgi.
authormyk%mozilla.org <>
Sat, 8 Jun 2002 03:58:30 +0000 (03:58 +0000)
committermyk%mozilla.org <>
Sat, 8 Jun 2002 03:58:30 +0000 (03:58 +0000)
Patch by Bradley Baetz <bbaetz@student.usyd.edu.au>.
r=gerv,myk

buglist.cgi

index b7fb72a69f746b4fb634e6d2dacb511ef262d97a..917103fc225a592d10c21c0e26b5b4da6559083a 100755 (executable)
@@ -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);