Ticket #654 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

metaWeblogAPI.newMediaObject fails on file writing

Reported by: gbhugo Assigned to: 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

01/10/05 17:02:17 changed by gbhugo

  • Patch set to No.

01/10/05 17:04:29 changed by ryan

  • Patch changed from No to Yes.

01/24/05 09:53:28 changed by matt

  • 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.