Author: leithoff
New Revision: 28091
URL: http://www.egroupware.org/viewvc/egroupware?rev=28091&view=rev
Log:
work around webdrive bug while deleting folders: pretend we didnt see it, as webdrive does not handle the depth parameter correctly while deleting collections
Modified:
branches/1.6/egw-pear/HTTP/WebDAV/Server.php
Modified: branches/1.6/egw-pear/HTTP/WebDAV/Server.php
URL: http://www.egroupware.org/viewvc/egroupware/branches/1.6/egw-pear/HTTP/WebDAV/Server.php?rev=28091&r1=28090&r2=28091&view=diff
— branches/1.6/egw-pear/HTTP/WebDAV/Server.php (original)
+++ branches/1.6/egw-pear/HTTP/WebDAV/Server.php Mon Oct 12 16:40:37 2009
@@ -1381,8 +1381,15 @@
// 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; -
} } }
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs