From: Matthias Schmidt Date: Wed, 16 Jan 2013 15:00:00 +0000 (+0100) Subject: Fixes setup X-Git-Tag: 2.0.0_Beta_1~561 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1b9d045bc06808887ffeb4a7ad64f4a0e4f40e6;p=GitHub%2FWoltLab%2FWCF.git Fixes setup --- diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index e545842070..d784fd01a8 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -425,7 +425,7 @@ class WCFSetup extends WCF { } // PHP supports 'K', 'M' and 'G' shorthand notation - if (preg_match('^~(\d+)([KMG])~$', $memoryLimit, $matches)) { + if (preg_match('~^(\d+)([KMG])~$', $memoryLimit, $matches)) { switch ($matches[2]) { case 'K': $memoryLimit = $matches[1] * 1024;