1
0
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:
EA117 2019-08-28 23:34:52 -05:00
parent 73537bcc7d
commit 29d4367043

View File

@ -305,14 +305,14 @@ class plupload
if ($limit_upload > 0)
{
$max = min($limit_upload, $max ? $max : $limit_upload);
$max = min($limit_upload, ($max ? $max : $limit_upload));
}
$limit_post = $this->php_ini->getBytes('post_max_size');
if ($limit_post > 0)
{
$max = min($limit_post, $max ? $max : $limit_post);
$max = min($limit_post, ($max ? $max : $limit_post));
}
// $config['max_filesize'] is not a limiter to chunk size.