[wp-trac] [WordPress Trac] #12559: IXR Class strips newlines from posts

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 8 23:37:36 UTC 2010


#12559: IXR Class strips newlines from posts
--------------------------+-------------------------------------------------
 Reporter:  apeatling     |       Owner:  josephscott 
     Type:  defect (bug)  |      Status:  new         
 Priority:  normal        |   Milestone:  3.0         
Component:  XML-RPC       |     Version:  3.0         
 Severity:  normal        |    Keywords:  xml-rpc, ixr
--------------------------+-------------------------------------------------
 Using the IXR class to fetch the latest posts using XML-RPC and
 'metaWeblog.getRecentPosts', newlines are being completely stripped from
 the response.

 This seems to be a bug in the parsing, where the response is broken down
 into 4096 byte chunks and stitched back together. The issue is with the
 trim() call on each chunk, stripping the line breaks.

 Josephscott worked out a fix, and I have confirmed this to work, but I'm
 unsure if there are any adverse effects. Patch attached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12559>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list