From: Matthias Schmidt Date: Sat, 24 Oct 2015 19:24:03 +0000 (+0200) Subject: Fix regular expressions X-Git-Tag: 3.0.0_Beta_1~2030^2~261^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c47fbcd5bb4cdc0ac7e86f0333f996b3c900ff0a;p=GitHub%2FWoltLab%2FWCF.git Fix regular expressions --- diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index aafa2486af..7eb48b1f58 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -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; }