Fix Windows 7 WebDAV issue

This commit is contained in:
Jörg Lehrke 2010-03-25 14:17:56 +00:00
parent ac75c349b8
commit af6e0c661d

View File

@ -96,5 +96,11 @@ catch (egw_exception_no_permission_app $e)
$GLOBALS['egw']->session->commit_session();
$webdav_server = new vfs_webdav_server();
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
if (strstr($user_agent, 'microsoft-webdav') !== false)
{
// Windows 7 special treatment
$webdav_server->cnrnd = true;
}
$webdav_server->ServeRequest();
//error_log(sprintf("WebDAV %s request took %5.3f s (header include took %5.3f s)",$_SERVER['REQUEST_METHOD'],microtime(true)-$starttime,$headertime-$starttime));