Ticket #7770: 7770.diff
| File 7770.diff, 828 bytes (added by , 17 years ago) |
|---|
-
wp-includes/http.php
356 356 * @static 357 357 * 358 358 * @param string $body Body content 359 * @return bool|string|WP_Error False if not chunked encoded. WP_Error on failure. Chunked decoded body on success.359 * @return string|WP_Error WP_Error on failure. body returned as-is if not chunked data. Chunked decoded body on success. 360 360 */ 361 361 function chunkTransferDecode($body) { 362 362 $body = str_replace(array("\r\n", "\r"), "\n", $body); 363 363 // The body is not chunked encoding or is malformed. 364 364 if ( ! preg_match( '/^[0-9a-f]+(\s|\n)+/mi', trim($body) ) ) 365 return false;365 return $body; 366 366 367 367 $parsedBody = ''; 368 368 //$parsedHeaders = array(); Unsupported