projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22acf18
)
ensure HTML::Entities is always loaded
author
Joey Hess
<joey@kitenet.net>
Thu, 17 May 2012 02:13:23 +0000
(22:13 -0400)
committer
Joey 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
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/meta.pm
b/IkiWiki/Plugin/meta.pm
index c79c8ccc08169842c8c292157015332af5ed855a..421f1dc86a83d33ac823f9989ad9e42c6dea12c9 100644
(file)
--- 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);
}