From b848d23ef38b7d9ff5ed3d5b2b618672a0e8fe6f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 19 Sep 2011 11:39:46 +0000 Subject: [PATCH] fixed no longer possible direct access/mount of VFS root via WebDAV after r36606 --- phpgwapi/inc/class.vfs_webdav_server.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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