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 /index.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 'index.cgi')
-rwxr-xr-xindex.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.cgi b/index.cgi
index 1bdaa5351..f617965d3 100755
--- a/index.cgi
+++ b/index.cgi
@@ -51,10 +51,12 @@ quietly_check_login('permit_anonymous');
# Main Body Execution
###############################################################################
+my $cgi = Bugzilla->cgi;
+
$vars->{'username'} = $::COOKIE{'Bugzilla_login'} || '';
# Return the appropriate HTTP response headers.
-print "Content-Type: text/html\n\n";
+print $cgi->header();
# Generate and return the UI (HTML page) from the appropriate template.
$template->process("index.html.tmpl", $vars)