Changeset 38727 for trunk/src/wp-includes/class-requests.php
- Timestamp:
- 10/05/2016 03:23:54 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-requests.php
r38163 r38727 750 750 */ 751 751 protected static function decode_chunked($data) { 752 if (!preg_match('/^([0-9a-f]+) [^\r\n]*\r\n/i', trim($data))) {752 if (!preg_match('/^([0-9a-f]+)(?:;(?:[\w-]*)(?:=(?:(?:[\w-]*)*|"(?:[^\r\n])*"))?)*\r\n/i', trim($data))) { 753 753 return $data; 754 754 } 755 756 755 757 756 758 $decoded = ''; … … 758 760 759 761 while (true) { 760 $is_chunked = (bool) preg_match('/^([0-9a-f]+) [^\r\n]*\r\n/i', $encoded, $matches);762 $is_chunked = (bool) preg_match('/^([0-9a-f]+)(?:;(?:[\w-]*)(?:=(?:(?:[\w-]*)*|"(?:[^\r\n])*"))?)*\r\n/i', $encoded, $matches); 761 763 if (!$is_chunked) { 762 764 // Looks like it's not chunked after all
Note: See TracChangeset
for help on using the changeset viewer.