ensure HTML::Entities is always loaded

(Worked ok in my tests w/o this, but not sure I tested every case,
and this is correct.)
master
Joey Hess 2012-05-16 22:13:23 -04:00
parent 22acf1872a
commit 18b0f2737b
1 changed files with 1 additions and 0 deletions

View File

@ -319,6 +319,7 @@ sub pagetemplate (@) {
}
foreach my $field (qw{authorurl}) {
eval q{use HTML::Entities};
$template->param($field => HTML::Entities::encode_entities($pagestate{$page}{meta}{$field}))
if exists $pagestate{$page}{meta}{$field} && $template->query(name => $field);
}