From: Joey Hess Date: Sun, 10 Feb 2008 21:29:46 +0000 (-0500) Subject: add parens around scheme regexp X-Git-Tag: 2.40~126 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2078f706d656a12f0f9495e0bb348ee4b0282f42;p=ikiwiki.git add parens around scheme regexp --- diff --git a/IkiWiki/Plugin/htmlscrubber.pm b/IkiWiki/Plugin/htmlscrubber.pm index e02a8591e..897a398ba 100644 --- a/IkiWiki/Plugin/htmlscrubber.pm +++ b/IkiWiki/Plugin/htmlscrubber.pm @@ -37,7 +37,7 @@ sub scrubber { #{{{ ); # data is a special case. Allow data:image/*, but # disallow data:text/javascript and everything else. - my $link=qr/^(?:$uri_schemes:|data:image\/|[^:]+$)/i; + my $link=qr/^(?:(?:$uri_schemes):|data:image\/|[^:]+$)/i; eval q{use HTML::Scrubber}; error($@) if $@;