Fix webdav support for OneNote clients

This commit is contained in:
Brandon Kirsch 2018-03-26 15:32:12 -04:00 committed by Morris Jobke
parent fa65aaf1fc
commit 78a6e94b52
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68
2 changed files with 2 additions and 2 deletions

View file

@ -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());

View file

@ -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());