Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#12046 closed defect (bug) (fixed)

Make the length field for enclosures an INT in metaWeblog.getPost results

Reported by: josephscott Owned by: josephscott
Priority: normal Milestone: 3.0
Component: XML-RPC Version: 3.0
Severity: normal Keywords: has-patch
Cc:

Description

Because we trim() the enclosure data being sent back from a metaWeblog.getPost request the length field ends up being a STRING, when it's supposed to be an INT. It's easy enough to fix, simply cast the length field to an INT.

I've included a trivial patch to do just that.

Attachments (1)

xmlrpc.php.diff (487 bytes) - added by josephscott 3 years ago.

Download all attachments as: .zip

Change History (3)

comment:1   ryan3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12870]) Cast length to int. Props josephscott. fixes #12046

  • Milestone changed from Unassigned to 3.0
Note: See TracTickets for help on using tickets.