diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-11-18 02:48:24 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-11-18 02:48:24 -0500 |
commit | e307eeda3d55446f4bdeb2ac48f4fef0c24b1f3d (patch) | |
tree | 296ce737b575876a97c111b26d913d7ec72a20b1 /IkiWiki/Plugin/recentchanges.pm | |
parent | 15269fed646bf14692061e634969c98b614daaad (diff) | |
download | ikiwiki-e307eeda3d55446f4bdeb2ac48f4fef0c24b1f3d.tar ikiwiki-e307eeda3d55446f4bdeb2ac48f4fef0c24b1f3d.tar.gz |
html escaping complication
Can't escape things to entities if the template then escapes the entities.
(aggregate doesn't have this problem.)
Diffstat (limited to 'IkiWiki/Plugin/recentchanges.pm')
-rw-r--r-- | IkiWiki/Plugin/recentchanges.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm index 39a123ccf..4d7023c1c 100644 --- a/IkiWiki/Plugin/recentchanges.pm +++ b/IkiWiki/Plugin/recentchanges.pm @@ -160,10 +160,12 @@ sub store ($$$) { #{{{ ); } - # escape wikilinks and preprocessor stuff in commit messages if (ref $change->{message}) { foreach my $field (@{$change->{message}}) { if (exists $field->{line}) { + # escape html + $field->{line} = encode_entities($field->{line}); + # escape links and preprocessor stuff $field->{line} = encode_entities($field->{line}, '\[\]'); } } |