Opened 15 years ago
Closed 15 years ago
#12559 closed defect (bug) (fixed)
IXR Class strips newlines from posts
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | XML-RPC | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Probably needs some testing.. But need to check it out to see if its caused by something else in the request process..