summaryrefslogtreecommitdiffstats
path: root/page.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-05-05 10:15:19 +0200
committerbbaetz%acm.org <>2003-05-05 10:15:19 +0200
commit9488a8906592564ec2e7601041f3ea5484cde3cc (patch)
treeb9308d1a3dcf639d1e561ede1186ff58afc01834 /page.cgi
parentc000c0a480f2cb73f2b0b89550bbd8e496b73c9d (diff)
downloadbugzilla-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.gz
bugzilla-9488a8906592564ec2e7601041f3ea5484cde3cc.tar.xz
Bug 201816 - use CGI.pm for header output
r=joel, a=justdave
Diffstat (limited to 'page.cgi')
-rwxr-xr-xpage.cgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/page.cgi b/page.cgi
index 48fafb380..2b229e0b6 100755
--- a/page.cgi
+++ b/page.cgi
@@ -31,6 +31,9 @@
use strict;
use lib ".";
+
+use Bugzilla;
+
require "CGI.pl";
use vars qw($template $vars);
@@ -39,6 +42,8 @@ ConnectToDatabase();
quietly_check_login();
+my $cgi = Bugzilla->cgi;
+
if ($::FORM{'id'}) {
# Remove all dodgy chars, and split into name and ctype.
$::FORM{'id'} =~ s/[^\w\-\.]//g;
@@ -47,8 +52,8 @@ if ($::FORM{'id'}) {
my $format = GetFormat($1, undef, $2);
$vars->{'form'} = \%::FORM;
-
- print "Content-Type: $format->{'ctype'}\n\n";
+
+ print $cgi->header($format->{'ctype'});
$template->process("pages/$format->{'template'}", $vars)
|| ThrowTemplateError($template->error());