From a044fcf1ae920675347d2c7617e152ea3ea96966 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 28 Aug 2013 07:29:09 +0000 Subject: [PATCH] WP_HTTP: Fix a variable typo in [25153] See #23463 git-svn-id: https://develop.svn.wordpress.org/trunk@25155 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index accac4b754..6dc6fbe225 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -479,7 +479,7 @@ class WP_Http { $body_original = $body; // We'll be altering $body, so need a backup in case of error while ( true ) { - $has_chunk = (bool) preg_match( '/^([0-9a-f]+)[^\r\n]*\r\n/i', $body_copy, $match ); + $has_chunk = (bool) preg_match( '/^([0-9a-f]+)[^\r\n]*\r\n/i', $body, $match ); if ( ! $has_chunk || empty( $match[1] ) ) return $body_original;