From 507d286afe056e2c0df44a721db7b411672703c6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 5 May 2009 05:35:56 +0000 Subject: [PATCH] Fix callbacks. Props Denis-de-Bernardy. fixes #9722 see #9697 git-svn-id: https://develop.svn.wordpress.org/trunk@11195 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-phpmailer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-phpmailer.php b/wp-includes/class-phpmailer.php index a533d1093b..162d7bf1c5 100644 --- a/wp-includes/class-phpmailer.php +++ b/wp-includes/class-phpmailer.php @@ -1423,17 +1423,17 @@ class PHPMailer { switch (strtolower($position)) { case 'phrase': $encoded = preg_replace_callback("/([^A-Za-z0-9!*+\/ -])/", - "EncodeQ_callback", $encoded); + array('PHPMailer', 'EncodeQ_callback'), $encoded); break; case 'comment': $encoded = preg_replace_callback("/([\(\)\"])/", - "EncodeQ_callback", $encoded); + array('PHPMailer', 'EncodeQ_callback'), $encoded); break; case 'text': default: /* Replace every high ascii, control =, ? and _ characters */ $encoded = preg_replace_callback('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/', - "EncodeQ_callback", $encoded); + array('PHPMailer', 'EncodeQ_callback'), $encoded); break; }