Skip to content

Commit aa79f9a

Browse files
authored
Merge pull request #20577 from nextcloud/bugfix/noid/sabre4_aftermethod
Fix usages of afterMethod -> afterMethod:*
2 parents 89bd8ea + effcd58 commit aa79f9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function handleAnonymousOptions(RequestInterface $request, ResponseInterf
7575
// setup a fake tree for anonymous access
7676
$this->server->tree = new Tree(new Directory(''));
7777
$corePlugin->httpOptions($request, $response);
78-
$this->server->emit('afterMethod', [$request, $response]);
78+
$this->server->emit('afterMethod:*', [$request, $response]);
7979
$this->server->emit('afterMethod:OPTIONS', [$request, $response]);
8080

8181
$this->server->sapi->sendResponse($response);

apps/dav/lib/Connector/Sabre/LockPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class LockPlugin extends ServerPlugin {
4747
public function initialize(\Sabre\DAV\Server $server) {
4848
$this->server = $server;
4949
$this->server->on('beforeMethod:*', [$this, 'getLock'], 50);
50-
$this->server->on('afterMethod', [$this, 'releaseLock'], 50);
50+
$this->server->on('afterMethod:*', [$this, 'releaseLock'], 50);
5151
}
5252

5353
public function getLock(RequestInterface $request) {

0 commit comments

Comments
 (0)