Changeset 52393 for trunk/src/wp-includes/SimplePie/HTTP/Parser.php
- Timestamp:
- 12/20/2021 07:31:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/SimplePie/HTTP/Parser.php
r47733 r52393 508 508 $data = explode("\r\n\r\n", $headers, $count); 509 509 $data = array_pop($data); 510 if (false !== stripos($data, "HTTP/1.0 200 Connection established\r\n\r\n")) { 511 $data = str_ireplace("HTTP/1.0 200 Connection established\r\n\r\n", '', $data); 512 } 513 if (false !== stripos($data, "HTTP/1.1 200 Connection established\r\n\r\n")) { 514 $data = str_ireplace("HTTP/1.1 200 Connection established\r\n\r\n", '', $data); 510 if (false !== stripos($data, "HTTP/1.0 200 Connection established\r\n")) { 511 $exploded = explode("\r\n\r\n", $data, 2); 512 $data = end($exploded); 513 } 514 if (false !== stripos($data, "HTTP/1.1 200 Connection established\r\n")) { 515 $exploded = explode("\r\n\r\n", $data, 2); 516 $data = end($exploded); 515 517 } 516 518 return $data;
Note: See TracChangeset
for help on using the changeset viewer.