From af3222dc7ead33f42fbb6edfe87ca54663d77e9b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 7 Dec 2010 07:17:06 +0000 Subject: [PATCH] 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 --- wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 4d63ffe926..cdd7784b5e 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -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 ]; }