From: <var...@us...> - 2012-10-11 07:28:28
|
Revision: 8407 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8407&view=rev Author: vargenau Date: 2012-10-11 07:28:17 +0000 (Thu, 11 Oct 2012) Log Message: ----------- quoted_printable_encode inserts "\r\n" if line is too long, use "\n" only Modified Paths: -------------- trunk/lib/MailNotify.php Modified: trunk/lib/MailNotify.php =================================================================== --- trunk/lib/MailNotify.php 2012-10-10 16:51:57 UTC (rev 8406) +++ trunk/lib/MailNotify.php 2012-10-11 07:28:17 UTC (rev 8407) @@ -479,7 +479,8 @@ // Let us try quoted printable first if (function_exists('quoted_printable_encode')) { // PHP 5.3 - return "=?UTF-8?Q?" . quoted_printable_encode($subject) . "?="; + // quoted_printable_encode inserts "\r\n" if line is too long, use "\n" only + return "=?UTF-8?Q?" . str_replace("\r\n", "\n", quoted_printable_encode($subject)) . "?="; } // If not, encode in base64 (less human-readable) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |