]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmlscrubber.pm
Fix htmlscrubber_skip to be matched on the source page, not the page it is inlined...
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmlscrubber.pm
index 8475181780db55cfd1b0e0846f277e44fa87e156..4a90c6f648ff895c9b200e1960fd22c9957e9bdc 100644 (file)
@@ -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};
        }