summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-24 22:21:31 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-24 22:21:31 +0000
commite2b0202cff81f02ce9a7e6a1cddf463704ebacf1 (patch)
tree6b80ca09a622d2335d6ee88e38b969755043c963 /LedgerSMB
parentabbbc08b1380943d37cac42c3cfd17aa43d92e1e (diff)
Converting forms that use warehouse_header to templates
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1814 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Template.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB/Template.pm b/LedgerSMB/Template.pm
index 03bcbc34..28c1f40e 100755
--- a/LedgerSMB/Template.pm
+++ b/LedgerSMB/Template.pm
@@ -122,6 +122,7 @@ package LedgerSMB::Template;
use warnings;
use strict;
+use Carp;
use Error qw(:try);
use LedgerSMB::Sysconfig;
@@ -212,6 +213,7 @@ sub render {
my $cleanvars;
if ($self->{no_escape}) {
+ carp 'no_escape mode enabled in rendering';
$cleanvars = $vars;
} else {
$cleanvars = $format->can('preprocess')->($vars);
@@ -271,6 +273,7 @@ sub _http_output {
}
if ($self->{mimetype} =~ /^text/) {
print "Content-Type: $self->{mimetype}; charset=utf-8$disposition\n\n";
+ binmode STDOUT, ':utf8';
} else {
print "Content-Type: $self->{mimetype}$disposition\n\n";
binmode STDOUT, ':bytes';