mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
work around webdrive bug while deleting folders: pretend we didnt see it, as webdrive does not handle the depth parameter correctly while deleting collections
This commit is contained in:
parent
96f98ea5c4
commit
991a4336b1
@ -1381,8 +1381,15 @@ class HTTP_WebDAV_Server
|
||||
// check RFC 2518 Section 9.2, last paragraph
|
||||
if (isset($this->_SERVER["HTTP_DEPTH"])) {
|
||||
if ($this->_SERVER["HTTP_DEPTH"] != "infinity") {
|
||||
$this->http_status("400 Bad Request");
|
||||
return;
|
||||
if (stripos($_SERVER['HTTP_USER_AGENT'],'webdrive') !== false)
|
||||
{
|
||||
// pretend we didnt see it, as webdrive does not handle the depth parameter correctly while deleting collections
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->http_status("400 Bad Request");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user