summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-04-18 22:46:26 +0200
committerGitHub <noreply@github.com>2018-04-18 22:46:26 +0200
commit5262685e57f05e25d417d7833c38b6a987c1fead (patch)
tree8d9e1f0a28d704d1a3bcbd80dd73595519bbfa3a
parent26c153667a4442b5cddfd373dd1e05b9971a6776 (diff)
parent78a6e94b524097050dda3e5e0b20972759a412f4 (diff)
downloadnextcloud-server-5262685e57f05e25d417d7833c38b6a987c1fead.tar.gz
nextcloud-server-5262685e57f05e25d417d7833c38b6a987c1fead.zip
Merge pull request #9236 from nextcloud/13-8996
[stable13] 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 c120b0be2e2..8488093ccad 100644
--- a/apps/dav/lib/Connector/Sabre/ServerFactory.php
+++ b/apps/dav/lib/Connector/Sabre/ServerFactory.php
@@ -120,7 +120,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 dfa19467e5e..a34ba94f21f 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -181,7 +181,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());