Page 1 of 1

MetaWeblog API image upload bug

Posted: Mon Mar 28, 2005 12:28 am
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

Re: MetaWeblog API image upload bug

Posted: Mon Mar 28, 2005 2:00 pm
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