OpenMage / magento-lts

Official OpenMage LTS codebase | Migrate easily from Magento Community Edition in minutes! Download the source code for free or contribute to OpenMage LTS | Security vulnerability patches, bug fixes, performance improvements and more.
https://www.openmage.org
Open Software License 3.0
865 stars 436 forks source link

Fixed `Mage_Uploader_Helper_File::getDataMaxSize()` when checking against different size units #4039

Closed F1Red5 closed 3 months ago

F1Red5 commented 3 months ago

Description (*)

Fixes Mage_Uploader_Helper_File::getDataMaxSize() when different units are used.

Manual testing scenarios (*)

  1. min('1M', '1G')returns 1G
fballiano commented 3 months ago

when porting to next I'll not include the polyfills since they're not needed (next is running on 8.2 minimum)