mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +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)) {
|
switch (strtolower($position)) {
|
||||||
case 'phrase':
|
case 'phrase':
|
||||||
$encoded = preg_replace_callback("/([^A-Za-z0-9!*+\/ -])/",
|
$encoded = preg_replace_callback("/([^A-Za-z0-9!*+\/ -])/",
|
||||||
"EncodeQ_callback", $encoded);
|
array('PHPMailer', 'EncodeQ_callback'), $encoded);
|
||||||
break;
|
break;
|
||||||
case 'comment':
|
case 'comment':
|
||||||
$encoded = preg_replace_callback("/([\(\)\"])/",
|
$encoded = preg_replace_callback("/([\(\)\"])/",
|
||||||
"EncodeQ_callback", $encoded);
|
array('PHPMailer', 'EncodeQ_callback'), $encoded);
|
||||||
break;
|
break;
|
||||||
case 'text':
|
case 'text':
|
||||||
default:
|
default:
|
||||||
/* Replace every high ascii, control =, ? and _ characters */
|
/* Replace every high ascii, control =, ? and _ characters */
|
||||||
$encoded = preg_replace_callback('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/',
|
$encoded = preg_replace_callback('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/',
|
||||||
"EncodeQ_callback", $encoded);
|
array('PHPMailer', 'EncodeQ_callback'), $encoded);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user