mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
trying to fix the real cause for the resourcetype/collection issue, breaking XP native WebDav Access and having impacts on groupdav: Now resourcetype returns a prop for collection in case of a folder
This commit is contained in:
parent
1bcb356a25
commit
62c6359c0b
@ -263,7 +263,7 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem
|
||||
// type and size (caller already made sure that path exists)
|
||||
if (is_dir($fspath)) {
|
||||
// directory (WebDAV collection)
|
||||
$info['props'][] = HTTP_WebDAV_Server::mkprop ('resourcetype', 'collection');
|
||||
$info['props'][] = HTTP_WebDAV_Server::mkprop ('resourcetype', HTTP_WebDAV_Server::mkprop('collection',''));
|
||||
$info['props'][] = HTTP_WebDAV_Server::mkprop ('getcontenttype', 'httpd/unix-directory');
|
||||
} else {
|
||||
// plain file (WebDAV resource)
|
||||
@ -471,4 +471,4 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem
|
||||
{
|
||||
return egw_vfs::checkLock($path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user