diff --git a/phpgwapi/inc/class.vfs_webdav_server.inc.php b/phpgwapi/inc/class.vfs_webdav_server.inc.php index 4c39661230..f69bfda3b6 100644 --- a/phpgwapi/inc/class.vfs_webdav_server.inc.php +++ b/phpgwapi/inc/class.vfs_webdav_server.inc.php @@ -355,7 +355,7 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem foreach($files['files'] as $n => $info) { $path = $info['path']; - if (!$n && substr($info['path'],-1) == '/') $path = substr($info['path'],0,-1); + if (!$n && $info['path'] != '/' && substr($info['path'],-1) == '/') $path = substr($info['path'],0,-1); $path2n[$path] = $n; // adding some properties used instead of regular DAV times