spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felic...@apache.org
Subject svn commit: r439926 - /spamassassin/trunk/lib/Mail/SpamAssassin/Conf/Parser.pm
Date Mon, 04 Sep 2006 04:28:18 GMT
Author: felicity
Date: Sun Sep  3 21:28:16 2006
New Revision: 439926

URL: http://svn.apache.org/viewvc?view=rev&rev=439926
Log:
bug 5076: unescape hash characters in the config

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Conf/Parser.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Conf/Parser.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Conf/Parser.pm?view=diff&rev=439926&r1=439925&r2=439926
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Conf/Parser.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Conf/Parser.pm Sun Sep  3 21:28:16 2006
@@ -241,6 +241,7 @@
     local ($1);         # bug 3838: prevent random taint flagging of $1
 
     $line =~ s/(?<!\\)#.*$//; # remove comments
+    $line =~ s/\\#/#/g; # hash chars are escaped, so unescape them
     $line =~ s/^\s+//;  # remove leading whitespace
     $line =~ s/\s+$//;  # remove tailing whitespace
     next unless($line); # skip empty lines



Mime
View raw message