Skip to content

Commit 787a588

Browse files
committed
Merge branch '3.x-dev' into 4.x-dev
2 parents e69674b + 556e740 commit 787a588

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ public static function isJoomlaStream($streamname)
286286
*/
287287
public static function getFileUploadMaxSize()
288288
{
289-
$maxSize = self::parseSize(\ini_get('post_max_size'));
290-
$uploadMax = self::parseSize(\ini_get('upload_max_filesize'));
289+
$maxSize = (int) self::parseSize(\ini_get('post_max_size'));
290+
$uploadMax = (int) self::parseSize(\ini_get('upload_max_filesize'));
291291

292292
if ($uploadMax > 0 && ($uploadMax < $maxSize || $maxSize == 0)) {
293293
$maxSize = $uploadMax;

0 commit comments

Comments
 (0)