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:
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);
|
$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);
|
||||||
|
|
Loading…
Reference in a new issue