aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Page.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r--perllib/Page.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index f5d97d63c..ffe16fb9a 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -63,7 +63,7 @@ sub do_fastcgi {
my $old_fh = select($str_fh);
&$func($q);
select($old_fh) if defined $old_fh;
- print encode_utf8(${$str_fh->string_ref});
+ print $binary ? ${$str_fh->string_ref} : encode_utf8(${$str_fh->string_ref});
dbh()->rollback() if $mySociety::DBHandle::conf_ok;
$W->exit_if_changed();
}