1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52: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); $encoded);
break; break;
case 'comment': case 'comment':
$encoded = preg_replace( $encoded = preg_replace_callback(
"/([\(\)\"])/", "/([\(\)\"])/",
array($this, 'encodeQCallback'), array($this, 'encodeQCallback'),
$encoded); $encoded);
@ -1520,7 +1520,7 @@ class PHPMailerLite {
case 'text': case 'text':
default: default:
// Replace every high ascii, control =, ? and _ characters // 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])/', '/([\000-\011\013\014\016-\037\075\077\137\177-\377])/',
array($this, 'encodeQCallback'), array($this, 'encodeQCallback'),
$encoded); $encoded);