Skip to content
Snippets Groups Projects
Commit ac12722c authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

enforce UTF8 for accounts file

parent 334aec1e
No related branches found
No related tags found
No related merge requests found
...@@ -95,14 +95,16 @@ sub update_ssp_authsources { ...@@ -95,14 +95,16 @@ sub update_ssp_authsources {
my ($templates_dir, $output, $accounts) = @_; my ($templates_dir, $output, $accounts) = @_;
my $tt2 = Template->new({ my $tt2 = Template->new({
INCLUDE_PATH => $templates_dir ENCODING => 'utf8',
INCLUDE_PATH => $templates_dir . '/accounts'
}); });
my $template = 'accounts/accounts.php.tt2'; my $template = 'accounts.php.tt2';
my $data = { my $data = {
accounts => $accounts, accounts => $accounts,
}; };
$tt2->process($template, $data, $output) or die $tt2->error(); $tt2->process($template, $data, $output, { binmode => ':utf8' })
or die $tt2->error();
} }
1; 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment