Merge pull request #3757 from nextcloud/issue-2887-no-subsystem-for-locking

Add new user agent of windows 10 dav backend
This commit is contained in:
Roeland Jago Douma 2017-03-08 09:27:12 +01:00 committed by GitHub
commit 74ac5dffbd
2 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,7 @@ class FakeLockerPlugin extends ServerPlugin {
new LockDiscovery([$lockInfo])
]);
$response->setStatus(200);
$response->setBody($body);
return false;

View File

@ -155,6 +155,7 @@ class Server {
if($request->isUserAgent([
'/WebDAVFS/',
'/Microsoft Office OneNote 2013/',
'/^Microsoft-WebDAV/',// Microsoft-WebDAV-MiniRedir/6.1.7601
])) {
$this->server->addPlugin(new FakeLockerPlugin());
}