mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 01:20:40 +01:00
[ticket/16141] plupload chunk_size when 'unlimited' is involved.
Change get_chunk_size() calculation to correctly calculate limits without letting a zero "unlimited" value always win. Also ensure get_chunk_size() can only return zero if all of the limits were in fact set to unlimited. PHPBB3-16141
This commit is contained in:
parent
29d4367043
commit
bf359d153d
@ -314,7 +314,7 @@ class plupload
|
||||
{
|
||||
$max = min($limit_post, ($max ? $max : $limit_post));
|
||||
}
|
||||
|
||||
|
||||
// $config['max_filesize'] is not a limiter to chunk size.
|
||||
|
||||
return floor($max / 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user