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

encodage explicite pour les templates

parent 52efa170
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,7 @@ sub respond { ...@@ -142,6 +142,7 @@ sub respond {
## Parse template ## Parse template
my $tt2 = Template->new({ my $tt2 = Template->new({
ENCODING => 'utf8',
INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} . "/web/$lang" INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} . "/web/$lang"
}); });
...@@ -359,6 +360,7 @@ sub req_complete_challenge { ...@@ -359,6 +360,7 @@ sub req_complete_challenge {
}; };
my $tt2 = Template->new({ my $tt2 = Template->new({
ENCODING => 'utf8',
INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir}
}); });
my $template = 'mail/send_authentication_token.tt2.eml'; my $template = 'mail/send_authentication_token.tt2.eml';
...@@ -531,6 +533,7 @@ sub req_create_accounts { ...@@ -531,6 +533,7 @@ sub req_create_accounts {
my $lang = HTTP::AcceptLanguage->new($ENV{HTTP_ACCEPT_LANGUAGE})->match(qw/en fr/) || 'en'; my $lang = HTTP::AcceptLanguage->new($ENV{HTTP_ACCEPT_LANGUAGE})->match(qw/en fr/) || 'en';
my $tt2 = Template->new({ my $tt2 = Template->new({
ENCODING => 'utf8',
INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} . "/web/$lang" INCLUDE_PATH => $self->{configuration}->{_}->{templates_dir} . "/web/$lang"
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment