summaryrefslogtreecommitdiffstats
path: root/config.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.cgi b/config.cgi
index 8e423ca00..3e3943989 100755
--- a/config.cgi
+++ b/config.cgi
@@ -139,6 +139,9 @@ sub display_data {
$template->process($format->{'template'}, $vars, \$output)
|| ThrowTemplateError($template->error());
+ # Remove leading whitespaces, to save some bandwidth.
+ $output =~ s/^\s+(?=<)//gm if $format->{'ctype'} =~ /rdf/;
+
# Wide characters cause md5_base64() to die.
my $digest_data = $output;
utf8::encode($digest_data) if utf8::is_utf8($digest_data);