From 166467494821199a25776ffc1b8db71c06bdc444 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@14677 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ea5c01b96..49f80b0ca 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;