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

git-svn-id: https://develop.svn.wordpress.org/trunk@16762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-07 07:17:06 +00:00
parent a63bf413ad
commit af3222dc7e
1 changed files with 1 additions and 1 deletions

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 ];
}