Преглед на файлове

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

Add new user agent of windows 10 dav backend
Roeland Jago Douma преди 7 години
родител
ревизия
74ac5dffbd
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php
  2. 1 0
      apps/dav/lib/Server.php

+ 1 - 0
apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php

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

+ 1 - 0
apps/dav/lib/Server.php

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