Fix regular expressions
authorMatthias Schmidt <gravatronics@live.com>
Sat, 24 Oct 2015 19:24:03 +0000 (21:24 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 24 Oct 2015 19:24:03 +0000 (21:24 +0200)
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php

index aafa2486af6cf71451604b45356cec5b3969ae94..7eb48b1f58d27c3918254ed5dbd04b7df81173dc 100644 (file)
@@ -78,7 +78,7 @@ class StyleCompiler extends SingletonFactory {
                                $file = WCF_DIR."style/{$file}/";
                                if ($innerHandle = opendir($file)) {
                                        while (($innerFile = readdir($innerHandle)) !== false) {
-                                               if ($innerFile === '.' || $innerFile === '..' || !is_file($file.$innerFile) || !preg_match('~^[a-zA-Z]+\.scss~$', $innerFile)) {
+                                               if ($innerFile === '.' || $innerFile === '..' || !is_file($file.$innerFile) || !preg_match('~^[a-zA-Z]+\.scss$~', $innerFile)) {
                                                        continue;
                                                }
                                                
@@ -165,7 +165,7 @@ class StyleCompiler extends SingletonFactory {
                                $file = WCF_DIR."style/{$file}/";
                                if ($innerHandle = opendir($file)) {
                                        while (($innerFile = readdir($innerHandle)) !== false) {
-                                               if ($innerFile === '.' || $innerFile === '..' || !is_file($file.$innerFile) || !preg_match('~^[a-zA-Z]+\.scss~$', $innerFile)) {
+                                               if ($innerFile === '.' || $innerFile === '..' || !is_file($file.$innerFile) || !preg_match('~^[a-zA-Z]+\.scss$~', $innerFile)) {
                                                        continue;
                                                }