From c1b9d045bc06808887ffeb4a7ad64f4a0e4f40e6 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 16 Jan 2013 16:00:00 +0100 Subject: [PATCH] Fixes 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 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; -- 2.20.1