You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2018/10/25 06:07:24 UTC

svn commit: r1844808 - /spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Check.pm

Author: hege
Date: Thu Oct 25 06:07:23 2018
New Revision: 1844808

URL: http://svn.apache.org/viewvc?rev=1844808&view=rev
Log:
Bug 6360 - "negative match" on a "0" string

Modified:
    spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Check.pm

Modified: spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Check.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Check.pm?rev=1844808&r1=1844807&r2=1844808&view=diff
==============================================================================
--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Check.pm (original)
+++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/Check.pm Thu Oct 25 06:07:23 2018
@@ -1382,7 +1382,7 @@ sub hit_rule_plugin_code {
     $match = '"<YES>"'; # nothing better to report, $& is not set by this rule
   } else {
     # simple, but suffers from 'user data interpreted as a boolean', Bug 6360
-    $match = '($' . '&' . '|| "negative match")';
+    $match = '(defined $'.'& ? $'.'& : "negative match")';
   }
 
   my $debug_code = '';