]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Fix htmlscrubber_skip to be matched on the source page, not the page it is inlined...
authorJoey Hess <joey@kitenet.net>
Fri, 12 Nov 2010 03:59:24 +0000 (23:59 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 12 Nov 2010 04:00:54 +0000 (00:00 -0400)
IkiWiki/Plugin/htmlscrubber.pm
debian/changelog

index 927792f791f2160232671e1327db2a379a496e9d..a58a27d5221acc50e932057b9fabaffcf38c7b97 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};
        }
 
index 59d7eb7614456872e64a3893e88b78f4456b6f19..63e13896ed0e5f5ba80caab4542b85655d6965db 100644 (file)
@@ -8,6 +8,9 @@ ikiwiki (3.20101024) UNRELEASED; urgency=low
     (Thanks, Craig Lennox and Tuomas Jormola)
   * git: Use author date, not committer date. Closes: #602012
     (Thanks, Tuomas Jormola)
+  * 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.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 25 Oct 2010 22:30:29 -0400