[Pkg-owncloud-commits] [php-sabredav] 06/19: Windows 10 support. Fixes #727
David Prévot
taffit at moszumanska.debian.org
Thu Apr 7 01:40:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit fe5a599595994b264815dde750147950b6b9dfe2
Author: Evert Pot <me at evertpot.com>
Date: Tue Oct 27 00:16:33 2015 -0400
Windows 10 support. Fixes #727
---
CHANGELOG.md | 1 +
lib/CalDAV/Plugin.php | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 62b0c7c..d379a87 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ ChangeLog
------------------
* Set minimum libxml version to 2.7.0 in `composer.json`.
+* #727: Added another workaround to make CalDAV work for Windows 10 clients.
3.0.8 (2016-03-12)
diff --git a/lib/CalDAV/Plugin.php b/lib/CalDAV/Plugin.php
index b50b2ab..50b0077 100644
--- a/lib/CalDAV/Plugin.php
+++ b/lib/CalDAV/Plugin.php
@@ -578,10 +578,14 @@ class Plugin extends DAV\ServerPlugin {
if ($node instanceof ICalendarObjectContainer && $depth === 0) {
- if (strpos($this->server->httpRequest->getHeader('User-Agent'), 'MSFT-WP/') === 0) {
- // Windows phone incorrectly supplied depth as 0, when it actually
+ if (strpos($this->server->httpRequest->getHeader('User-Agent'), 'MSFT-') === 0) {
+ // Microsoft clients incorrectly supplied depth as 0, when it actually
// should have set depth to 1. We're implementing a workaround here
// to deal with this.
+ //
+ // This targets at least the following clients:
+ // Windows 10
+ // Windows Phone 8, 10
$depth = 1;
} else {
throw new BadRequest('A calendar-query REPORT on a calendar with a Depth: 0 is undefined. Set Depth to 1');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list