aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MGA/Advisories.pm
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-07-21 09:56:14 +0000
committerNicolas Vigier <boklm@mageia.org>2013-07-21 09:56:14 +0000
commitc630a825e8e09efb128b172d2623f461a60b69f6 (patch)
tree5fa681353ad902d9f60ceb01b2fdaca6a2a5a079 /lib/MGA/Advisories.pm
parent936e78220c93e93cf7faad3074875365b73f7f06 (diff)
downloadmgaadvisories-c630a825e8e09efb128b172d2623f461a60b69f6.tar
mgaadvisories-c630a825e8e09efb128b172d2623f461a60b69f6.tar.gz
mgaadvisories-c630a825e8e09efb128b172d2623f461a60b69f6.tar.bz2
mgaadvisories-c630a825e8e09efb128b172d2623f461a60b69f6.tar.xz
mgaadvisories-c630a825e8e09efb128b172d2623f461a60b69f6.zip
Set ENCODING when creating templates
Diffstat (limited to 'lib/MGA/Advisories.pm')
-rw-r--r--lib/MGA/Advisories.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm
index 97fc77c..61f2cef 100644
--- a/lib/MGA/Advisories.pm
+++ b/lib/MGA/Advisories.pm
@@ -205,6 +205,7 @@ sub process_template {
sub output_pages {
my ($advdb) = @_;
my $template = Template->new(
+ ENCODING => 'utf8',
INCLUDE_PATH => $config->{tmpl_dir},
OUTPUT_PATH => $config->{out_dir},
);
@@ -246,6 +247,7 @@ sub send_adv_mail {
return unless $config->{send_adv_mail} eq 'yes';
return unless $config->{mode} eq 'site';
my $template = Template->new(
+ ENCODING => 'utf8',
INCLUDE_PATH => $config->{tmpl_dir},
);
foreach my $adv (keys %{$advdb->{advisories}}) {
@@ -283,6 +285,7 @@ sub send_report {
my ($advdb) = @_;
return unless @report_logs;
my $template = Template->new(
+ ENCODING => 'utf8',
INCLUDE_PATH => $config->{tmpl_dir},
);
my $reportcontent;
@@ -322,6 +325,7 @@ sub newadv {
my $template = Template->new(
INCLUDE_PATH => $config->{tmpl_dir},
OUTPUT_PATH => $config->{advisories_dir},
+ ENCODING => 'utf8',
);
my $vars = {
type => $type,
@@ -353,6 +357,7 @@ sub showadv {
return undef;
}
my $template = Template->new(
+ ENCODING => 'utf8',
INCLUDE_PATH => $config->{tmpl_dir},
);
my $vars = {