diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-11 23:59:24 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-12 00:00:54 -0400 |
commit | 289b30a47d548326aad9c1dc5252fc0269494c87 (patch) | |
tree | 71f1afd6746a837730d717b493ccb02ac0653dfe /IkiWiki | |
parent | 0a7db85f06674311b80b490dfc238a1eaed040f8 (diff) | |
download | ikiwiki-289b30a47d548326aad9c1dc5252fc0269494c87.tar ikiwiki-289b30a47d548326aad9c1dc5252fc0269494c87.tar.gz |
Fix htmlscrubber_skip to be matched on the source page, not the page it is inlined into. Should allow setting to "* and !comment(*)" to scrub comments, but leave your blog posts unscrubbed, etc.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/htmlscrubber.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/htmlscrubber.pm b/IkiWiki/Plugin/htmlscrubber.pm index 927792f79..a58a27d52 100644 --- a/IkiWiki/Plugin/htmlscrubber.pm +++ b/IkiWiki/Plugin/htmlscrubber.pm @@ -57,8 +57,8 @@ sub sanitize (@) { if (exists $config{htmlscrubber_skip} && length $config{htmlscrubber_skip} && - exists $params{destpage} && - pagespec_match($params{destpage}, $config{htmlscrubber_skip})) { + exists $params{page} && + pagespec_match($params{page}, $config{htmlscrubber_skip})) { return $params{content}; } |