spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhar...@apache.org
Subject svn commit: r797276 - /spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/ReplaceTags.pm
Date Fri, 24 Jul 2009 00:12:50 GMT
Author: jhardin
Date: Fri Jul 24 00:12:49 2009
New Revision: 797276

URL: http://svn.apache.org/viewvc?rev=797276&view=rev
Log:
ReplaceTags parser should ignore unpaired angle brackets

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

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/ReplaceTags.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/ReplaceTags.pm?rev=797276&r1=797275&r2=797276&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/ReplaceTags.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/ReplaceTags.pm Fri Jul 24 00:12:49 2009
@@ -116,7 +116,7 @@
 
           # this will produce an array of tags to be replaced
           # for two adjacent tags, an element of "" will be between the two
-          my @re = split(/(<.+?>)/, $re);
+          my @re = split(/(<[^<>]+?>)/, $re);
 
           if ($pre_name) {
             my $pre = $conf->{replace_pre}->{$pre_name};



Mime
View raw message