Fixed detection of scss files
authorMarcel Werk <burntime@woltlab.com>
Sun, 9 Oct 2016 17:09:05 +0000 (19:09 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 9 Oct 2016 17:10:27 +0000 (19:10 +0200)
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php

index 1da640e7ba82a6bfcbd68a6c68e3b8bad55647ad..319b1ffd0e414ed2ee09f5c554ae7d7136e40f02 100644 (file)
@@ -76,7 +76,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-Z0-9]+\.scss$~', $innerFile)) {
                                                        continue;
                                                }