Marius Cramer
2013-10-14 992797f73c92b413a7fecff02c27c61b7db55b43
server/lib/classes/system.inc.php
@@ -780,7 +780,8 @@
      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;
      // * is allowed, for example it is part of wildcard certificates/keys: *.example.com.crt
      if(!preg_match('@^/[-a-zA-Z0-9_/.*~]{1,}$@',$path)) return false;
      
      //* Check path for symlinks
      $path_parts = explode('/',$path);