Ticket #654 (closed defect (bug): fixed)
metaWeblogAPI.newMediaObject fails on file writing
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | XML-RPC | Version: | 1.5 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
The newMediaObject call failes when sending files with ecto to Wordpress. The reason is a bug in class-IXR.php where the base64_decode call (at least with PHP 4.1.something) failes to decode stuff. The string that is passed on to the base64_decode call must be trimmed. A patch is:
diff -r1.3 class-IXR.php 227c227 < $value = base64_decode($this->_currentTagContents); ---
$value = base64_decode(trim($this->_currentTagContents));
Change History
Note: See
TracTickets for help on using
tickets.
