Project

General

Profile

Actions

Bug #23755

closed

Size calculation function can only deal with integers

Added by Benni Mack about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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

Also available in: Atom PDF