You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2005/02/20 06:46:17 UTC
svn commit: r154475 -
spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm
Author: felicity
Date: Sat Feb 19 21:46:15 2005
New Revision: 154475
URL: http://svn.apache.org/viewcvs?view=rev&rev=154475
Log:
bug 3371: files with multiple whitespace characters in a row would be mishandled and split into multiple files.
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm?view=diff&r1=154474&r2=154475
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm Sat Feb 19 21:46:15 2005
@@ -1055,7 +1055,7 @@
$path =~ s,^~/,${home}/,;
# protect/escape spaces: ./Mail/My Letters => ./Mail/My\ Letters
- $path =~ s/([^\\])(\s)/$1\\$2/g;
+ $path =~ s/(?<!\\)(\s)/\\$1/g;
# return csh-style globs: ./corpus/*.mbox => er, you know what it does ;)
return glob($path);