From: <var...@us...> - 2014-10-03 15:19:10
|
Revision: 9181 http://sourceforge.net/p/phpwiki/code/9181 Author: vargenau Date: 2014-10-03 15:19:03 +0000 (Fri, 03 Oct 2014) Log Message: ----------- function quoted_printable_encode exists in PHP 5.3 Modified Paths: -------------- trunk/lib/MailNotify.php Modified: trunk/lib/MailNotify.php =================================================================== --- trunk/lib/MailNotify.php 2014-10-03 14:57:26 UTC (rev 9180) +++ trunk/lib/MailNotify.php 2014-10-03 15:19:03 UTC (rev 9181) @@ -449,14 +449,8 @@ return $subject; } - // Let us try quoted printable first - if (function_exists('quoted_printable_encode')) { // PHP 5.3 - // 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) - return "=?UTF-8?B?" . base64_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)) . "?="; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |