tbrehm
2012-10-25 83561b84a60a66662835722e9605c450a1d872a1
Fixed preg_match syntax in apache2 plugin. Thanks to István for the patch.
1 files modified
2 ■■■ changed files
server/plugins-available/apache2_plugin.inc.php 2 ●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php
@@ -2198,7 +2198,7 @@
                $files = @scandir($webdavRoot);
                if(is_array($files)) {
                foreach($files as $file) {
                    if (substr($file, strlen($file) - strlen('.htdigest')) == '.htdigest' && preg_match("[a-zA-Z0-9\-_\.]",$file)) {
                    if (substr($file, strlen($file) - strlen('.htdigest')) == '.htdigest' && preg_match("/^[a-zA-Z0-9\-_\.]*$/",$file)) {
                        /*
                         * found a htdigest - file, so add it to webdav
                        */