PHPMailer Lite version 5.1, line 1484 and non-lite line 1723:
$encoded = preg_replace('/[\r\n]*/', '', $str);
I think this should be:
$encoded = preg_replace('/[\r\n]+/', '', $str);
I also think it would take less resources to use str_replace() instead of regexp where it is possible (here and other places):
$encoded=str_replace(array("\r","\n"),'',$str);.
2009-10-27 13:16:58 UTC in PHPMailer