Fixes setup
authorMarcel Werk <burntime@woltlab.com>
Wed, 16 Jan 2013 19:32:53 +0000 (20:32 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 16 Jan 2013 19:32:53 +0000 (20:32 +0100)
wcfsetup/install/files/lib/system/WCFSetup.class.php

index d784fd01a82771ecd1f4ef964965740030737cc3..6b0c2ee0a28a1f9950b81144627cce425af01fce 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;