From 34117973ccd02f856eaa82c129d676f6de645511 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Wed, 17 Mar 2004 17:18:41 -0800 Subject: [PATCH] [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). --- cgi/common.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/cgi/common.pl b/cgi/common.pl index 419930c8..082eb2d9 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; -- 2.39.5