summaryrefslogtreecommitdiffstats
path: root/chart.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'chart.cgi')
-rwxr-xr-xchart.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/chart.cgi b/chart.cgi
index 25d5b446d..ab145c42a 100755
--- a/chart.cgi
+++ b/chart.cgi
@@ -282,6 +282,8 @@ sub plot {
}
print $cgi->header($format->{'ctype'});
+ disable_utf8() if ($format->{'ctype'} =~ /^image\//);
+
$template->process($format->{'template'}, $vars)
|| ThrowTemplateError($template->error());
}