aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-08-19 13:59:31 -0400
committerJoey Hess <joey@kitenet.net>2010-08-19 13:59:31 -0400
commit9b9ecda62f893a2109ccdb6bcdb2358f217f7fef (patch)
tree3e0d30d26fa1b6dcc34a76992079b3c5166049d0 /IkiWiki
parent6e7ae22ed22e1dc94d41203de5ddda9fac75edac (diff)
downloadikiwiki-9b9ecda62f893a2109ccdb6bcdb2358f217f7fef.tar
ikiwiki-9b9ecda62f893a2109ccdb6bcdb2358f217f7fef.tar.gz
htmlscrubber: Do not scrub url anchors that contain colons.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/htmlscrubber.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/htmlscrubber.pm b/IkiWiki/Plugin/htmlscrubber.pm
index 847518178..927792f79 100644
--- a/IkiWiki/Plugin/htmlscrubber.pm
+++ b/IkiWiki/Plugin/htmlscrubber.pm
@@ -32,7 +32,7 @@ sub import {
);
# data is a special case. Allow a few data:image/ types,
# but disallow data:text/javascript and everything else.
- $safe_url_regexp=qr/^(?:(?:$uri_schemes):|data:image\/(?:png|jpeg|gif)|[^:]+(?:$|[\/\?]))/i;
+ $safe_url_regexp=qr/^(?:(?:$uri_schemes):|data:image\/(?:png|jpeg|gif)|[^:]+(?:$|[\/\?#]))|^#/i;
}
sub getsetup () {