diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-18 22:46:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 22:46:26 +0200 |
commit | 5262685e57f05e25d417d7833c38b6a987c1fead (patch) | |
tree | 8d9e1f0a28d704d1a3bcbd80dd73595519bbfa3a | |
parent | 26c153667a4442b5cddfd373dd1e05b9971a6776 (diff) | |
parent | 78a6e94b524097050dda3e5e0b20972759a412f4 (diff) | |
download | nextcloud-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.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/Server.php | 2 |
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()); |