From 2dab570b8b2b7928a995cf03e1227d77d216c282 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 16 May 2009 04:46:31 +0000 Subject: [PATCH] Fix bad call to str_replace. see #9395 git-svn-id: http://svn.automattic.com/wordpress/trunk@11355 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/http.php b/wp-includes/http.php index e3575f2c09..be618a7c66 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -399,7 +399,7 @@ class WP_Http { // split headers, one per array element if ( is_string($headers) ) { // tolerate line terminator: CRLF = LF (RFC 2616 19.3) - $headers = str_replace("\r\n", "\n"); + $headers = str_replace("\r\n", "\n", $headers); // unfold folded header fields. LWS = [CRLF] 1*( SP | HT ) , (RFC 2616 2.2) $headers = preg_replace('/\n[ \t]/', ' ', $headers); // create the headers array