aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-05-05 08:15:19 +0000
committerbbaetz%acm.org <>2003-05-05 08:15:19 +0000
commit9488a8906592564ec2e7601041f3ea5484cde3cc (patch)
treeb9308d1a3dcf639d1e561ede1186ff58afc01834 /reports.cgi
parentBug 204104 - internal error in Search.pm when searching for invalid (diff)
downloadbugzilla-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.gz
bugzilla-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.bz2
bugzilla-9488a8906592564ec2e7601041f3ea5484cde3cc.zip
Bug 201816 - use CGI.pm for header output
r=joel, a=justdave
Diffstat (limited to 'reports.cgi')
-rwxr-xr-xreports.cgi9
1 files changed, 4 insertions, 5 deletions
diff --git a/reports.cgi b/reports.cgi
index d3b1d9431..71ecf6c31 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -62,6 +62,8 @@ GetVersionTable();
Bugzilla->switch_to_shadow_db();
+my $cgi = Bugzilla->cgi;
+
# We only want those products that the user has permissions for.
my @myproducts;
push( @myproducts, "-All-");
@@ -69,7 +71,7 @@ push( @myproducts, GetSelectableProducts());
if (! defined $FORM{'product'}) {
- print "Content-type: text/html\n\n";
+ print $cgi->header();
PutHeader("Bug Charts");
choose_product(@myproducts);
PutFooter();
@@ -93,10 +95,7 @@ if (! defined $FORM{'product'}) {
# This means that is OK to detaint
trick_taint($FORM{'product'});
- # Output appropriate HTTP response headers
- print "Content-type: text/html\n";
- # Changing attachment to inline to resolve 46897 - zach@zachlipton.com
- print "Content-disposition: inline; filename=bugzilla_report.html\n\n";
+ print $cgi->header(-Content_Disposition=>'inline; filename=bugzilla_report.html');
PutHeader("Bug Charts");