We only need strpos here. Ensures PHP4 compat. props mailnew2ster, fixes #14187.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-07 07:17:06 +00:00
parent 4dae6777c0
commit 26d7de2d93

View File

@ -1426,7 +1426,7 @@ class WP_Http_Curl {
$theBody = substr( $theResponse, $headerLength );
else
$theBody = '';
if ( false !== strrpos($theHeaders, "\r\n\r\n") ) {
if ( false !== strpos($theHeaders, "\r\n\r\n") ) {
$headerParts = explode("\r\n\r\n", $theHeaders);
$theHeaders = $headerParts[ count($headerParts) -1 ];
}