IXR Class strips newlines from posts
|Reported by:||apeatling||Owned by:||josephscott|
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.