Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#12046 closed defect (bug) (fixed)

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

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


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 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ryan
14 years ago

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

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

#2 @nacin
14 years ago

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