diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2010-06-23 16:31:25 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2010-10-23 18:04:17 +0200 |
| commit | 7463a988ea03c2b6548e1a37f422f0974b3e1446 (patch) | |
| tree | b6bd7e4d5107d22d830a392c2cc63c8d835b3a2c /phpBB/includes/functions_download.php | |
| parent | 18e55708518fc53f5b134235895328de03680521 (diff) | |
| download | forums-7463a988ea03c2b6548e1a37f422f0974b3e1446.tar forums-7463a988ea03c2b6548e1a37f422f0974b3e1446.tar.gz forums-7463a988ea03c2b6548e1a37f422f0974b3e1446.tar.bz2 forums-7463a988ea03c2b6548e1a37f422f0974b3e1446.tar.xz forums-7463a988ea03c2b6548e1a37f422f0974b3e1446.zip | |
[ticket/9627] Make sure range request reads till the end of the file.
PHPBB3-9627
Diffstat (limited to 'phpBB/includes/functions_download.php')
| -rw-r--r-- | phpBB/includes/functions_download.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 7013a80418..d863d9f87b 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -542,6 +542,12 @@ function http_byte_range($filesize) } } + // We currently do not support range requests that end before the end of the file + if ($last_byte_pos != $filesize - 1) + { + continue; + } + return array( 'byte_pos_start' => $first_byte_pos, 'byte_pos_end' => $last_byte_pos, |
