From fbd6ccfb3ad9e2552e2144436afd3b9751a0cf6c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 19 Feb 2010 00:28:23 +0000 Subject: [PATCH] Fix double escaping in wp_getComments. Props josephscott. fixes #12281 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@13207 602fd350-edb4-49c9-b593-d223f7449a82 --- xmlrpc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index d5bf81bf46..d52e58d114 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -1075,6 +1075,7 @@ class wp_xmlrpc_server extends IXR_Server { * @return array */ function wp_getComments($args) { + $raw_args = $args; $this->escape($args); $blog_id = (int) $args[0]; @@ -1117,7 +1118,7 @@ class wp_xmlrpc_server extends IXR_Server { for ( $i = 0; $i < $num_comments; $i++ ) { $comment = wp_xmlrpc_server::wp_getComment(array( - $blog_id, $username, $password, $comments[$i]->comment_ID, + $raw_args[0], $raw_args[1], $raw_args[2], $comments[$i]->comment_ID, )); $comments_struct[] = $comment; }