Ticket #654 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 7 years ago

metaWeblogAPI.newMediaObject fails on file writing

Reported by: gbhugo Owned by: matt
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

  • Patch set to No

comment:2   ryan7 years ago

  • Patch changed from No to Yes

comment:3   matt7 years ago

  • Owner changed from anonymous to matt
  • fixed_in_version set to 1.5
  • Status changed from new to closed
  • Resolution changed from 10 to 20
Note: See TracTickets for help on using tickets.