diff options
author | EA117 <admin@ea117.com> | 2019-08-29 00:17:14 -0500 |
---|---|---|
committer | EA117 <admin@ea117.com> | 2019-08-29 00:17:14 -0500 |
commit | bf359d153dd0ff6cc9505cdd7bf8a7754b6a6073 (patch) | |
tree | 25eb6e88f412c5d7a6ef8fa84341ceea41c78c80 /phpBB/phpbb | |
parent | 29d43670430f3edad2366ddbca15d1b34315ce1d (diff) | |
download | forums-bf359d153dd0ff6cc9505cdd7bf8a7754b6a6073.tar forums-bf359d153dd0ff6cc9505cdd7bf8a7754b6a6073.tar.gz forums-bf359d153dd0ff6cc9505cdd7bf8a7754b6a6073.tar.bz2 forums-bf359d153dd0ff6cc9505cdd7bf8a7754b6a6073.tar.xz forums-bf359d153dd0ff6cc9505cdd7bf8a7754b6a6073.zip |
[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
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/plupload/plupload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/plupload/plupload.php b/phpBB/phpbb/plupload/plupload.php index f9403938ed..91b635b617 100644 --- a/phpBB/phpbb/plupload/plupload.php +++ b/phpBB/phpbb/plupload/plupload.php @@ -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); |