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 #1

Updated by Benni Mack about 14 years ago

Committed to trunk (rev. 9119)
Committed to TYPO3_4-4 (rev. 9120)
Committed to TYPO3_4-3 (rev. 9121)

Actions #2

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF