Don't escape image bits.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3882320f61
commit
c26724062a
10
xmlrpc.php
10
xmlrpc.php
|
@ -823,11 +823,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
// adapted from a patch by Johann Richard
|
// adapted from a patch by Johann Richard
|
||||||
// http://mycvs.org/archives/2004/06/30/file-upload-to-wordpress-in-ecto/
|
// http://mycvs.org/archives/2004/06/30/file-upload-to-wordpress-in-ecto/
|
||||||
|
|
||||||
$this->escape($args);
|
global $wpdb;
|
||||||
|
|
||||||
$blog_ID = $args[0];
|
$blog_ID = $wpdb->escape($args[0]);
|
||||||
$user_login = $args[1];
|
$user_login = $wpdb->escape($args[1]);
|
||||||
$user_pass = $args[2];
|
$user_pass = $wpdb->escape($args[2]);
|
||||||
$data = $args[3];
|
$data = $args[3];
|
||||||
|
|
||||||
$name = $data['name'];
|
$name = $data['name'];
|
||||||
|
|
Loading…
Reference in New Issue