From bc57e47e02dcb16fd2e1eede2df1d9f0d6f79f7b Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 5 May 2009 05:35:56 +0000 Subject: [PATCH] Fix callbacks. Props Denis-de-Bernardy. fixes #9722 see #9697 git-svn-id: http://svn.automattic.com/wordpress/trunk@11195 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 a533d1093..162d7bf1c 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; }