mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@11195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f40b6e5ff
commit
bc57e47e02
@ -1423,17 +1423,17 @@ class PHPMailer {
|
||||
switch (strtolower($position)) {
|
||||
case 'phrase':
|
||||
$encoded = preg_replace_callback("/([^A-Za-z0-9!*+\/ -])/",
|
||||
"EncodeQ_callback", $encoded);
|
||||
array('PHPMailer', 'EncodeQ_callback'), $encoded);
|
||||
break;
|
||||
case 'comment':
|
||||
$encoded = preg_replace_callback("/([\(\)\"])/",
|
||||
"EncodeQ_callback", $encoded);
|
||||
array('PHPMailer', 'EncodeQ_callback'), $encoded);
|
||||
break;
|
||||
case 'text':
|
||||
default:
|
||||
/* Replace every high ascii, control =, ? and _ characters */
|
||||
$encoded = preg_replace_callback('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/',
|
||||
"EncodeQ_callback", $encoded);
|
||||
array('PHPMailer', 'EncodeQ_callback'), $encoded);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user