Fixes setup
authorMatthias Schmidt <gravatronics@live.com>
Wed, 16 Jan 2013 15:00:00 +0000 (16:00 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 16 Jan 2013 15:00:00 +0000 (16:00 +0100)
wcfsetup/install/files/lib/system/WCFSetup.class.php

index e5458420700dfa463fe7d73859b00c51c0c5c379..d784fd01a82771ecd1f4ef964965740030737cc3 100644 (file)
@@ -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;