You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by do...@apache.org on 2006/04/12 22:18:30 UTC
svn commit: r393590 -
/spamassassin/branches/3.1/lib/Mail/SpamAssassin/Conf/Parser.pm
Author: dos
Date: Wed Apr 12 13:18:28 2006
New Revision: 393590
URL: http://svn.apache.org/viewcvs?rev=393590&view=rev
Log:
bug 3838: work around Perl bug causing to become tainted -- thanks to Mark Martinec for pointing out the bug with Perl itself
Modified:
spamassassin/branches/3.1/lib/Mail/SpamAssassin/Conf/Parser.pm
Modified: spamassassin/branches/3.1/lib/Mail/SpamAssassin/Conf/Parser.pm
URL: http://svn.apache.org/viewcvs/spamassassin/branches/3.1/lib/Mail/SpamAssassin/Conf/Parser.pm?rev=393590&r1=393589&r2=393590&view=diff
==============================================================================
--- spamassassin/branches/3.1/lib/Mail/SpamAssassin/Conf/Parser.pm (original)
+++ spamassassin/branches/3.1/lib/Mail/SpamAssassin/Conf/Parser.pm Wed Apr 12 13:18:28 2006
@@ -237,6 +237,8 @@
my $line;
while (defined ($line = shift @conf_lines)) {
+ local ($1); # bug 3838: prevent random taint flagging of $1
+
$line =~ s/(?<!\\)#.*$//; # remove comments
$line =~ s/^\s+//; # remove leading whitespace
$line =~ s/\s+$//; # remove tailing whitespace