From: Joey Hess Date: Thu, 17 May 2012 02:13:23 +0000 (-0400) Subject: ensure HTML::Entities is always loaded X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/18b0f2737b3f1478deff6e9c48217c6f22a576ea?hp=22acf1872a746af65b2f5487991ff008e52ed1c2 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.) --- diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index c79c8ccc0..421f1dc86 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -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); }