Fix bad call to str_replace. see #9395

git-svn-id: https://develop.svn.wordpress.org/trunk@11355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-16 04:46:31 +00:00
parent dfad06fd16
commit 2511d7e2c3
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) <US-ASCII SP, space (32)>, <US-ASCII HT, horizontal-tab (9)> (RFC 2616 2.2)
$headers = preg_replace('/\n[ \t]/', ' ', $headers);
// create the headers array