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

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <175931269977.2793572.9750971800851751947@svn02-us-east.apache.org>
Author: gbechis
Date: Wed Oct  1 09:58:19 2025
New Revision: 1928877

Log:
return early if the new url has an unsupported protocol

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	Wed Oct  1 09:50:20 2025	(r1928876)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm	Wed Oct  1 09:58:19 2025	(r1928877)
@@ -982,6 +982,11 @@ sub recursive_lookup {
   # Check if it is a redirection to a relative URI
   # Make it an absolute URI and chain to it in that case
   if ($location !~ m{^[a-z]+://}i) {
+    # return early if the new url has an unsupported protocol
+    if($location =~ /^(ftp|mailto|tel):/) {
+      dbg("Unsupported protocol scheme \"$1:\"");
+      return;
+    }
     my $orig_location = $location;
     my $orig_redir_url = $redir_url;
     # Strip to..
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.