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:
parent
2353af7464
commit
1db0dadbcf
1 changed files with 2 additions and 2 deletions
4
externals/phpmailer/class.phpmailer-lite.php
vendored
4
externals/phpmailer/class.phpmailer-lite.php
vendored
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue