GX-Bug #49319 » ImageSizeGigaByteIniValueFix.patch
src/admin/includes/modules/set_category_data.inc.php (revision ) | ||
---|---|---|
130 | 130 |
$uploadMaxFilesize = $uploadMaxFilesize * pow(1024, 2); |
131 | 131 |
}elseif(strpos($uploadMaxFilesize, 'K') !== false){ |
132 | 132 |
$uploadMaxFilesize = $uploadMaxFilesize * 1024; |
133 |
} elseif(strpos($uploadMaxFilesize, 'G') !== false) { |
|
134 |
$uploadMaxFilesize = $uploadMaxFilesize * pow(1024, 3); |
|
133 | 135 |
} |
134 | 136 |
|
135 | 137 |
$imageFilesize = $_FILES['categories_image']['size']; |