Bjorn

Show:

What's happening?

  • Regexp in the source (ver 5.1)

    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

About Me

  • 2006-11-05 (3 years ago)
  • 1637909
  • bjorn_se (My Site)
  • Bjorn

Send me a message