[wp-hackers] 1.5.1.3 XMLRPC problems

Ryan Boren ryan at boren.nu
Wed Jun 29 23:12:38 GMT 2005


On Wed, 2005-06-29 at 18:11 -0500, Ryan Boren wrote:
> Anyone have a client that uploads images?  I think I see a problem in
> mw_newMediaObject().  $data['bits'] has been escaped which will probably
> result in a screwed up file.  Nothing in the $data array looks like it
> needs to be escaped; none of it goes to the DB.  Here's a possible fix.

An attachment would help.  Please try the existing code to verify that
it breaks and then try the patch.

Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlrpc_newmedia.diff
Type: text/x-patch
Size: 619 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/wp-hackers/attachments/20050629/a96d59cf/xmlrpc_newmedia.bin


More information about the wp-hackers mailing list