mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Fix bad call to str_replace. see #9395
git-svn-id: http://svn.automattic.com/wordpress/trunk@11355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
054ab7521d
commit
2dab570b8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user