]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/htmlscrubber.pm
toc: Add the table of contents at sanitize time, rather than at format time. This...
[git.ikiwiki.info.git] / IkiWiki / Plugin / htmlscrubber.pm
index 7ce07ee9abd2a606e69068a182cd05368f9cab7f..3bdaccea119ec0e1b289a0da2f6d90e2219b8d66 100644 (file)
@@ -31,7 +31,7 @@ sub import { #{{{
        );
        # data is a special case. Allow data:image/*, but
        # disallow data:text/javascript and everything else.
-       $safe_url_regexp=qr/^(?:(?:$uri_schemes):|data:image\/|[^:]+$)/i;
+       $safe_url_regexp=qr/^(?:(?:$uri_schemes):|data:image\/|[^:]+(?:$|\/))/i;
 } # }}}
 
 sub sanitize (@) { #{{{