1
0
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:
Andreas Fischer 2010-06-23 16:31:25 +02:00
parent 18e5570851
commit 7463a988ea

View File

@ -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,