Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Don't escape image bits.
Browse files Browse the repository at this point in the history
git-svn-id: http://core.svn.wordpress.org/trunk@2676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jun 30, 2005
1 parent 9284d71 commit a57e203
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xmlrpc.php
Expand Up @@ -823,11 +823,11 @@ function mw_newMediaObject($args) {
// adapted from a patch by Johann Richard
// http://mycvs.org/archives/2004/06/30/file-upload-to-wordpress-in-ecto/

$this->escape($args);

$blog_ID = $args[0];
$user_login = $args[1];
$user_pass = $args[2];
global $wpdb;
$blog_ID = $wpdb->escape($args[0]);
$user_login = $wpdb->escape($args[1]);
$user_pass = $wpdb->escape($args[2]);
$data = $args[3];

$name = $data['name'];
Expand Down

0 comments on commit a57e203

Please sign in to comment.