aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-03 13:27:29 +0200
committerGitHub <noreply@github.com>2018-04-03 13:27:29 +0200
commitbd8352d4c4aa1d350ae6b6620452952b7b11b311 (patch)
tree8cb5ca65833ae20ef6d125b9470f1253c88006d9
parentf0fcf88a4f305b4ee1e5aec6efe0800682ddf5ee (diff)
parentc5005bbab5480d7748b9b21607ace3bc41a04d78 (diff)
downloadnextcloud-server-bd8352d4c4aa1d350ae6b6620452952b7b11b311.tar.gz
nextcloud-server-bd8352d4c4aa1d350ae6b6620452952b7b11b311.zip
Merge pull request #8996 from brandonkirsch/fix-onenote-dav
Fix webdav support for OneNote clients
-rw-r--r--apps/dav/lib/Connector/Sabre/ServerFactory.php2
-rw-r--r--apps/dav/lib/Server.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ServerFactory.php b/apps/dav/lib/Connector/Sabre/ServerFactory.php
index 73969865a86..302e1f52249 100644
--- a/apps/dav/lib/Connector/Sabre/ServerFactory.php
+++ b/apps/dav/lib/Connector/Sabre/ServerFactory.php
@@ -119,7 +119,7 @@ class ServerFactory {
// we do not provide locking we emulate it using a fake locking plugin.
if($this->request->isUserAgent([
'/WebDAVFS/',
- '/Microsoft Office OneNote 2013/',
+ '/OneNote/',
'/Microsoft-WebDAV-MiniRedir/',
])) {
$server->addPlugin(new \OCA\DAV\Connector\Sabre\FakeLockerPlugin());
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index 84426db04cb..7fbd7671e8d 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -179,7 +179,7 @@ class Server {
// we do not provide locking we emulate it using a fake locking plugin.
if($request->isUserAgent([
'/WebDAVFS/',
- '/Microsoft Office OneNote 2013/',
+ '/OneNote/',
'/^Microsoft-WebDAV/',// Microsoft-WebDAV-MiniRedir/6.1.7601
])) {
$this->server->addPlugin(new FakeLockerPlugin());