]> sipb.mit.edu Git - ikiwiki.git/commitdiff
ensure HTML::Entities is always loaded
authorJoey Hess <joey@kitenet.net>
Thu, 17 May 2012 02:13:23 +0000 (22:13 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 17 May 2012 02:13:23 +0000 (22:13 -0400)
(Worked ok in my tests w/o this, but not sure I tested every case,
and this is correct.)

IkiWiki/Plugin/meta.pm

index c79c8ccc08169842c8c292157015332af5ed855a..421f1dc86a83d33ac823f9989ad9e42c6dea12c9 100644 (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);
        }