From f774c315a0500ba0cb024b359ba2ea33fd63694f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 1 Jul 2016 01:04:15 +0200 Subject: [PATCH] Improved check for max upload filesize during setup --- wcfsetup/install/files/lib/system/WCFSetup.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index f2a1a20067..c1fddc87c1 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -361,7 +361,7 @@ class WCFSetup extends WCF { $system['sql']['result'] = MySQLDatabase::isSupported(); // upload_max_filesize - $system['uploadMaxFilesize']['value'] = ini_get('upload_max_filesize'); + $system['uploadMaxFilesize']['value'] = min(ini_get('upload_max_filesize'), ini_get('post_max_size')); $system['uploadMaxFilesize']['result'] = (intval($system['uploadMaxFilesize']['value']) > 0); // gdlib version -- 2.20.1