Changeset 38728 for branches/4.6/src/wp-includes/class-requests.php
- Timestamp:
- 10/05/2016 03:26:37 AM (7 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
-
branches/4.6/src/wp-includes/class-requests.php
r38163 r38728 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.