MetaWeblog API image upload bug

Discussion corner for Developers of Serendipity.
Post Reply
Guest

MetaWeblog API image upload bug

Post by Guest »

Hi guys,

great piece of software. I have a typo3 site online but wanted to get rid of the rather bad ee_blog extension. I installed a s9y and enjoy it very much besides the fact that I cannot really integrate it into the t3 at the moment.

I stumbled upon an implementation bug in the MetaWeblog API of S9Y in the function metaWeblog_newMediaObject(). If you try to upload a picture, the file is broken as the text is saved as your picture, but this is still base64 encoded. here's the patch to correct this.

Code: Select all

462c462
<     fwrite($fp, $struct['bits']);
---
>     fwrite($fp, base64_decode($struct['bits']));
best regards and a thanks a lot for s9y :)
marco
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: MetaWeblog API image upload bug

Post by garvinhicking »

Hi marco!

Thanks a lot, I've just committed this fix to CVS!

Our xmlrpc library is missing some other functions to be really up to date. So if you happen to find more of XMLRPC-related bugs, please tell me. I'll be glad to fix it, but I'm not too much into that XMLRPC stuff sadly.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply