| @@ 116-123 (lines=8) @@ | ||
| 113 | $server->addPlugin(new \OCA\DAV\Connector\Sabre\LockPlugin()); |
|
| 114 | // Some WebDAV clients do require Class 2 WebDAV support (locking), since |
|
| 115 | // we do not provide locking we emulate it using a fake locking plugin. |
|
| 116 | if ($this->request->isUserAgent([ |
|
| 117 | '/WebDAVFS/', |
|
| 118 | '/OneNote/', |
|
| 119 | '/Microsoft Office OneNote 2013/', |
|
| 120 | '/Microsoft-WebDAV-MiniRedir/', |
|
| 121 | ])) { |
|
| 122 | $server->addPlugin(new \OCA\DAV\Connector\Sabre\FakeLockerPlugin()); |
|
| 123 | } |
|
| 124 | ||
| 125 | if (BrowserErrorPagePlugin::isBrowserRequest($this->request)) { |
|
| 126 | $server->addPlugin(new BrowserErrorPagePlugin()); |
|
| @@ 194-201 (lines=8) @@ | ||
| 191 | ||
| 192 | // Some WebDAV clients do require Class 2 WebDAV support (locking), since |
|
| 193 | // we do not provide locking we emulate it using a fake locking plugin. |
|
| 194 | if ($request->isUserAgent([ |
|
| 195 | '/WebDAVFS/', |
|
| 196 | '/OneNote/', |
|
| 197 | '/Microsoft Office OneNote 2013/', |
|
| 198 | '/Microsoft-WebDAV-MiniRedir/', |
|
| 199 | ])) { |
|
| 200 | $this->server->addPlugin(new FakeLockerPlugin()); |
|
| 201 | } |
|
| 202 | ||
| 203 | if (BrowserErrorPagePlugin::isBrowserRequest($request)) { |
|
| 204 | $this->server->addPlugin(new BrowserErrorPagePlugin()); |
|