You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/04/21 06:22:13 UTC
[Bug 3286] New: protocol removal in uri_to_domain should be case insensitive
http://bugzilla.spamassassin.org/show_bug.cgi?id=3286
Summary: protocol removal in uri_to_domain should be case
insensitive
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Libraries
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: yusufg@outblaze.com
In Util.pm, in uri_to_domain shouldn't protocol removal be case insensitive.
trivial inline patch
--- Util.pm.orig 2004-04-21 12:08:32.750833640 +0800
+++ Util.pm 2004-04-21 12:08:45.578883480 +0800
@@ -713,9 +713,9 @@
#return if ($uri =~ /^mailto:/i); # not mailto's, please (TODO?)
return if ($uri =~ /^javascript:/i);
- $uri =~ s,^mailto:\/*,,gs; # drop the protocol
+ $uri =~ s,^mailto:\/*,,gis; # drop the protocol
$uri =~ s,#.*$,,gs; # drop fragment
- $uri =~ s,^[a-z]+://,,gs; # drop the protocol
+ $uri =~ s,^[a-z]+://,,gis; # drop the protocol
$uri =~ s,^[^/]*\@,,gs; # username/passwd
$uri =~ s,[/\?\&].*$,,gs; # path/cgi params
$uri =~ s,:\d+$,,gs; # port
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.