From: cjwatson <> Date: Thu, 18 Mar 2004 01:18:41 +0000 (-0800) Subject: [project @ 2004-03-17 17:18:41 by cjwatson] X-Git-Tag: release/2.6.0~758 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=34117973ccd02f856eaa82c129d676f6de645511;p=debbugs.git [project @ 2004-03-17 17:18:41 by cjwatson] Sanitize # to %23 in attachment URLs (but not where it's supposed to introduce an anchor, obviously). --- diff --git a/cgi/common.pl b/cgi/common.pl index 419930c..082eb2d 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -407,6 +407,7 @@ sub tagurl { sub urlsanit { my $url = shift; $url =~ s/%/%25/g; + $url =~ s/#/%23/g; $url =~ s/\+/%2b/g; my %saniarray = ('<','lt', '>','gt', '&','amp', '"','quot'); $url =~ s/([<>&"])/\&$saniarray{$1};/g;