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 2004/11/03 03:43:27 UTC
svn commit: rev 56460 - spamassassin/trunk/lib/Mail
Author: felicity
Date: Tue Nov 2 18:43:26 2004
New Revision: 56460
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin.pm
Log:
bug 3648: depending on the call to read_cf(), config files without a newline ending the final config line would cause config errors. add in an extra newline after reading in config files (already done in one section of read_cf()...)
Modified: spamassassin/trunk/lib/Mail/SpamAssassin.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin.pm Tue Nov 2 18:43:26 2004
@@ -1397,7 +1397,8 @@
if (open (IN, "<".$path)) {
$txt .= "file start $path\n";
$txt = join ('', <IN>);
- $txt .= "file end $path\n";
+ # add an extra \n in case file did not end in one.
+ $txt .= "\nfile end $path\n";
close IN;
dbg("config: read file $path");
}