Fix callbacks. Props Denis-de-Bernardy. fixes #9722 see #9697

git-svn-id: http://svn.automattic.com/wordpress/trunk@11195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-05 05:35:56 +00:00
parent 4f40b6e5ff
commit bc57e47e02
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}