Actions
Bug #23755
closedSize calculation function can only deal with integers
Start date:
2010-10-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The conversion function t3lib_div::getBytesFromSizeMeasurement($limit) casts the $limit function to integer. Usually you have a value from php.ini like upload_max_file = 2M, which works fine with that function.
However, if you have values like upload_max_file = 2.5M, the t3lib_div function fails.
Solution is to replace the intval() calls with doubleval() calls.
(issue imported from #M16022)
Files
Actions