svn commit: r1928192 - spamassassin/trunk/lib/Mail/SpamAssassin/Plugin

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <175684990342.2448870.12441187531203409587@svn02-us-east.apache.org>
Author: gbechis
Date: Tue Sep  2 21:51:43 2025
New Revision: 1928192

Log:
remove additional slashes after http://

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm	Tue Sep  2 21:49:35 2025	(r1928191)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm	Tue Sep  2 21:51:43 2025	(r1928192)
@@ -911,6 +911,8 @@ sub recursive_lookup {
     # Not cached; do lookup
     my $method = $redir_url_info->{method};
     # run the http check only if the url is valid
+    # remove additional slashes after http://
+    $redir_url =~ s|^(https?):\/{3,8}|$1://|;
     if($redir_url !~ /^(?:https?:\/\/)?(?:.{1,128}\@)?(?:[A-Za-z0-9-]{1,63}\.)+[A-Za-z0-9-]{2,63}/) {
       dbg("URL $redir_url is not valid, skipping http check");
       return;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.