projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73a8ccd
)
Encode <, >, and & as entities during raw inlines.
author
W. Trevor King
<wking@drexel.edu>
Wed, 13 Oct 2010 21:21:42 +0000
(17:21 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sun, 13 Jan 2013 12:12:03 +0000
(07:12 -0500)
IkiWiki/Plugin/inline.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/inline.pm
b/IkiWiki/Plugin/inline.pm
index 7537ae4bafb99c2bb1cbdcf882a5a317397feae8..e23ba316d2e4ca9f1eb48785ddf30d193801ed46 100755
(executable)
--- a/
IkiWiki/Plugin/inline.pm
+++ b/
IkiWiki/Plugin/inline.pm
@@
-5,6
+5,7
@@
package IkiWiki::Plugin::inline;
use warnings;
use strict;
use Encode;
+use HTML::Entities;
use IkiWiki 3.00;
use URI;
@@
-531,7
+532,7
@@
sub get_inline_content ($$$) {
filter($page, $destpage,
readfile(srcfile($file))))));
} elsif ($read_raw) {
- $ret=
readfile(srcfile($file)
);
+ $ret=
encode_entities(readfile(srcfile($file)), '<>&'
);
}
$nested--;
if (isinternal($page)) {