1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Minor, use preg_replace_callback() in PHPMailerLite. See D2147.

Auditors: btrahan, vrana, 20after4
This commit is contained in:
epriestley 2012-04-16 07:05:41 -07:00
parent 2353af7464
commit 1db0dadbcf

View file

@ -1512,7 +1512,7 @@ class PHPMailerLite {
$encoded);
break;
case 'comment':
$encoded = preg_replace(
$encoded = preg_replace_callback(
"/([\(\)\"])/",
array($this, 'encodeQCallback'),
$encoded);
@ -1520,7 +1520,7 @@ class PHPMailerLite {
case 'text':
default:
// Replace every high ascii, control =, ? and _ characters
$encoded = preg_replace(
$encoded = preg_replace_callback(
'/([\000-\011\013\014\016-\037\075\077\137\177-\377])/',
array($this, 'encodeQCallback'),
$encoded);