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

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <176829865161.1580689.8370516123612032193@svn02-us-east.apache.org>
Author: gbechis
Date: Tue Jan 13 10:04:11 2026
New Revision: 1931286

Log:
better handling of malformed uris

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 Jan 13 09:23:34 2026	(r1931285)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/Redirectors.pm	Tue Jan 13 10:04:11 2026	(r1931286)
@@ -1131,9 +1131,9 @@ sub recursive_lookup {
   # remove duplicated parameters in order to better catch loops
   my %paramseen;
   my $denorm_location = $location;
-  my ($hostpart, $querystring) = split /\?/, $location, 2;
+  my ($hostpart, $querystring) = split /\?|&amp;|&/, $location, 2;
   if(defined $querystring) {
-    my @params = split /&|%26/, $querystring;
+    my @params = split /&amp;|&|%26/, $querystring;
     my @unique_params = grep { !$paramseen{$_}++ } @params;
     my $nquerystring = join '&', @unique_params;
     $location = $hostpart . '?' . $nquerystring;
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.