Skip to content

Commit 1db0dad

Browse files
author
epriestley
committedApr 16, 2012
Minor, use preg_replace_callback() in PHPMailerLite. See D2147.
Auditors: btrahan, vrana, 20after4
1 parent 2353af7 commit 1db0dad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎externals/phpmailer/class.phpmailer-lite.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1512,15 +1512,15 @@ public function EncodeQ ($str, $position = 'text') {
15121512
$encoded);
15131513
break;
15141514
case 'comment':
1515-
$encoded = preg_replace(
1515+
$encoded = preg_replace_callback(
15161516
"/([\(\)\"])/",
15171517
array($this, 'encodeQCallback'),
15181518
$encoded);
15191519
break;
15201520
case 'text':
15211521
default:
15221522
// Replace every high ascii, control =, ? and _ characters
1523-
$encoded = preg_replace(
1523+
$encoded = preg_replace_callback(
15241524
'/([\000-\011\013\014\016-\037\075\077\137\177-\377])/',
15251525
array($this, 'encodeQCallback'),
15261526
$encoded);

0 commit comments

Comments
 (0)
Failed to load comments.