From 6979d55fbeee79fee78d292d309e2273e3480781 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 15 May 2010 21:04:26 +0000 Subject: [PATCH] Don't trim whitespace from sections of the response in IXR_Client. Fixes #12559 props apeatling. git-svn-id: https://develop.svn.wordpress.org/trunk@14677 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-IXR.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index ea5c01b964..49f80b0ca7 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -581,7 +581,8 @@ class IXR_Client { $gettingHeaders = false; } if (!$gettingHeaders) { - $contents .= trim($line); + // WP#12559 remove trim so as to not strip newlines from received response. + $contents .= $line; } if ($this->debug) { $debug_contents .= $line;