From d70874eabf6156cf22a0cafca3ef54bf50b3e7c3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 25 Mar 2009 07:08:26 +0000 Subject: [PATCH] "applied http://cvs.php.net/viewvc.cgi/pear/HTTP_WebDAV_Server/Server.php?r1=1.73&r2=1.74&view=patch to fix bug #1875: egw and lighttpd webdav: no put possible" --- egw-pear/HTTP/WebDAV/Server.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/egw-pear/HTTP/WebDAV/Server.php b/egw-pear/HTTP/WebDAV/Server.php index 7a58379b6d..60dc31ac92 100644 --- a/egw-pear/HTTP/WebDAV/Server.php +++ b/egw-pear/HTTP/WebDAV/Server.php @@ -1217,6 +1217,10 @@ class HTTP_WebDAV_Server $options["content_language"] = $val; break; + case 'HTTP_CONTENT_LENGTH': + // defined on IIS and has the same value as CONTENT_LENGTH + break; + case 'HTTP_CONTENT_LOCATION': // RFC 2616 14.14 /* The meaning of the Content-Location header in PUT or POST requests is undefined; servers are free @@ -1244,6 +1248,10 @@ class HTTP_WebDAV_Server // on implementations that do not support this ... break; + case 'HTTP_CONTENT_TYPE': + // defined on IIS and has the same value as CONTENT_TYPE + break; + case 'HTTP_CONTENT_MD5': // RFC 2616 14.15 // TODO: maybe we can just pretend here? $this->http_status("501 not implemented"); @@ -2044,7 +2052,7 @@ class HTTP_WebDAV_Server { //error_log( __METHOD__."\n" .print_r($text,true)); //error_log("prop-encode:" . print_r($this->_prop_encoding,true)); - + switch (strtolower($this->_prop_encoding)) { case "utf-8": //error_log( __METHOD__."allready encoded\n" .print_r($text,true));