mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/9627] Make sure range request reads till the end of the file.
PHPBB3-9627
This commit is contained in:
parent
18e5570851
commit
7463a988ea
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user