Skip to content

Commit

Permalink
Merge pull request #9236 from nextcloud/13-8996
Browse files Browse the repository at this point in the history
[stable13] Fix webdav support for OneNote clients
  • Loading branch information
MorrisJobke authored Apr 18, 2018
2 parents 26c1536 + 78a6e94 commit 5262685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/ServerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function createServer($baseUri,
// 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());
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function __construct(IRequest $request, $baseUri) {
// 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());
Expand Down

0 comments on commit 5262685

Please sign in to comment.