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
parent
22acf1872a
commit
18b0f2737b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue