mcramer
2013-07-11 e9b67e8196204a5c1b0f5266bb0d0c9150b4a2be
- Fixed: invalid regex in path checking

1 files modified
2 ■■■ changed files
server/lib/classes/system.inc.php 2 ●●● patch | view | raw | blame | history
server/lib/classes/system.inc.php
@@ -780,7 +780,7 @@
        if(substr($path,0,1) != '/') return false;
        
        //* We allow only some characters in the path
        if(!preg_match('/[a-zA-Z0-9_\.\-]{1,}/',$path)) return false;
        if(!preg_match('/^\/[a-zA-Z0-9_\/\.\-]{1,}$/',$path)) return false;
        
        //* Check path for symlinks
        $path_parts = explode('/',$path);