From ae7fa6c61601cf0f5cd6830eeb255660bdedbe42 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 3 Apr 2007 07:11:13 +0000 Subject: [PATCH] Cast to int after escaping. Props Joseph Scott. git-svn-id: http://svn.automattic.com/wordpress/trunk@5173 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index d691b8af12..7f4d021c7b 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -360,7 +360,7 @@ class wp_xmlrpc_server extends IXR_Server { function wp_editPage($args) { // Items not escaped here will be escaped in editPost. $blog_id = (int) $args[0]; - $page_id = $this->escape((int) $args[1]); + $page_id = (int) $this->escape($args[1]); $username = $this->escape($args[2]); $password = $this->escape($args[3]); $content = $args[4];