summaryrefslogtreecommitdiffstats
path: root/chart.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2004-09-13 00:46:07 +0200
committergerv%gerv.net <>2004-09-13 00:46:07 +0200
commitd42b46fc1513f7ba3216dbdda2914f1d19ace539 (patch)
tree46159a1465c9c1440350326d8a0c473af4258297 /chart.cgi
parent3582c773f927c3549937a8f8495fbd85c18afd44 (diff)
downloadbugzilla-d42b46fc1513f7ba3216dbdda2914f1d19ace539.tar.gz
bugzilla-d42b46fc1513f7ba3216dbdda2914f1d19ace539.tar.xz
Bug 257593 - make chart.cgi use Bugzilla::CGI for headers, meaning that if you log in via chart.cgi it doesn't get lost. Patch by wurblzap@gmail.com; r=gerv.
Diffstat (limited to 'chart.cgi')
-rwxr-xr-xchart.cgi12
1 files changed, 6 insertions, 6 deletions
diff --git a/chart.cgi b/chart.cgi
index d3f6f5ccc..4bab17701 100755
--- a/chart.cgi
+++ b/chart.cgi
@@ -140,7 +140,7 @@ elsif ($action eq "create") {
$vars->{'series'} = $series;
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
$template->process("global/message.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
}
@@ -251,7 +251,7 @@ sub edit {
$vars->{'creator'} = new Bugzilla::User($series->{'creator'});
$vars->{'default'} = $series;
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
$template->process("reports/edit-series.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
}
@@ -266,11 +266,11 @@ sub plot {
# Debugging PNGs is a pain; we need to be able to see the error messages
if ($cgi->param('debug')) {
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
$vars->{'chart'}->dump();
}
- print "Content-Type: $format->{'ctype'}\n\n";
+ print $cgi->header($format->{'ctype'});
$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());
}
@@ -287,7 +287,7 @@ sub wrap {
"action", "action-wrap", "ctype", "format", "width", "height",
"Bugzilla_login", "Bugzilla_password");
- print "Content-Type:text/html\n\n";
+ print $cgi->header();
$template->process("reports/chart.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
}
@@ -304,7 +304,7 @@ sub view {
$vars->{'chart'} = $chart;
$vars->{'category'} = Bugzilla::Chart::getVisibleSeries();
- print "Content-Type: text/html\n\n";
+ print $cgi->header();
# If we have having problems with bad data, we can set debug=1 to dump
# the data structure.