diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-04-21 13:26:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 13:26:13 +0200 |
commit | aa79f9ada2cb381ae342f21818ea1cc0aa64132a (patch) | |
tree | 04e53eb387bf9be2b24620aa8469680069defa61 /apps | |
parent | 89bd8ea449a139cf9f33e1964776639e4987ac0f (diff) | |
parent | effcd58e14b2c17d5d411441ad7c04d909e52c19 (diff) | |
download | nextcloud-server-aa79f9ada2cb381ae342f21818ea1cc0aa64132a.tar.gz nextcloud-server-aa79f9ada2cb381ae342f21818ea1cc0aa64132a.zip |
Merge pull request #20577 from nextcloud/bugfix/noid/sabre4_aftermethod
Fix usages of afterMethod -> afterMethod:*
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/Connector/Sabre/LockPlugin.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php index b693b50f8e3..63e57735972 100644 --- a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php +++ b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php @@ -75,7 +75,7 @@ class AnonymousOptionsPlugin extends ServerPlugin { // setup a fake tree for anonymous access $this->server->tree = new Tree(new Directory('')); $corePlugin->httpOptions($request, $response); - $this->server->emit('afterMethod', [$request, $response]); + $this->server->emit('afterMethod:*', [$request, $response]); $this->server->emit('afterMethod:OPTIONS', [$request, $response]); $this->server->sapi->sendResponse($response); diff --git a/apps/dav/lib/Connector/Sabre/LockPlugin.php b/apps/dav/lib/Connector/Sabre/LockPlugin.php index a8e3818c5c9..7c07f45fc79 100644 --- a/apps/dav/lib/Connector/Sabre/LockPlugin.php +++ b/apps/dav/lib/Connector/Sabre/LockPlugin.php @@ -47,7 +47,7 @@ class LockPlugin extends ServerPlugin { public function initialize(\Sabre\DAV\Server $server) { $this->server = $server; $this->server->on('beforeMethod:*', [$this, 'getLock'], 50); - $this->server->on('afterMethod', [$this, 'releaseLock'], 50); + $this->server->on('afterMethod:*', [$this, 'releaseLock'], 50); } public function getLock(RequestInterface $request) { |