summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBrandon Kirsch <brandonkirsch@github.com>2018-03-26 15:32:12 -0400
committerBrandon Kirsch <brandonkirsch@github.com>2018-03-26 15:32:12 -0400
commitc5005bbab5480d7748b9b21607ace3bc41a04d78 (patch)
treee9e6cf3071f6bf958fab9e876276c3e23695d777 /apps
parent8cdbb1ccd89fe056aabf4e91c9c08160be5dddeb (diff)
downloadnextcloud-server-c5005bbab5480d7748b9b21607ace3bc41a04d78.tar.gz
nextcloud-server-c5005bbab5480d7748b9b21607ace3bc41a04d78.zip
Fix webdav support for OneNote clients
Diffstat (limited to 'apps')
-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());