Ticket #7224: pingback.patch
| File pingback.patch, 355 bytes (added by lilyfan, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | 1017a1018 |
| 2 | > $is_chunked = preg_match('/^Transfer-Encoding: chunked$/im', $headers); |
| 3 | 1019c1020,1029 |
| 4 | < $line = fgets($fp, 1024); |
| 5 | --- |
| 6 | > $line = fgets($fp, 4096); |
| 7 | > if (! trim($line)) { |
| 8 | > continue; |
| 9 | > } elseif ($is_chunked) { |
| 10 | > $length = hexdec($line); |
| 11 | > if ($length <= 0) { |
| 12 | > return false; |
| 13 | > } |
| 14 | > $line = fread($fp, $length); |
| 15 | > } |
