diff options
Diffstat (limited to 'lib/MGA/Advisories.pm')
-rw-r--r-- | lib/MGA/Advisories.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MGA/Advisories.pm b/lib/MGA/Advisories.pm index c8514fa..8ce3581 100644 --- a/lib/MGA/Advisories.pm +++ b/lib/MGA/Advisories.pm @@ -620,6 +620,7 @@ sub output_pages { ENCODING => 'utf8', INCLUDE_PATH => $config->{tmpl_dir}, OUTPUT_PATH => $config->{out_dir}, + EVAL_PERL => 1, ); foreach my $adv (keys %{$advdb->{advisories}}) { my $vars = { @@ -630,6 +631,7 @@ sub output_pages { tools => \%tools, }; process_template($template, 'advisory', $vars, $basename{ID}->($adv)); + process_template($template, 'advisory', $vars, $basename{ID}->($adv), 'json'); } foreach my $by (['rel', 'by_rel'], ['CVE', 'by_cve'], ['src', 'by_src']) { foreach my $r (keys %{$advdb->{$by->[1]}}) { |