Skip to content

Commit

Permalink
dav QuirksPlugin: only check for OSX user agent for report requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rotdrop committed Feb 23, 2023
1 parent 3c5fa03 commit 2b24c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/Connector/Sabre/QuirksPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class QuirksPlugin extends ServerPlugin {
*/
public function initialize(Server $server)
{
$server->on('beforeMethod:*', [$this, 'beforeMethod'], 0);
$server->on('beforeMethod:REPORT', [$this, 'beforeReport'], 0);
$server->on('report', [$this, 'report'], 0);
}

Expand All @@ -59,7 +59,7 @@ public function initialize(Server $server)
*
* @return void
*/
public function beforeMethod(RequestInterface $request, ResponseInterface $response)
public function beforeReport(RequestInterface $request, ResponseInterface $response)
{
$userAgent = $request->getRawServerValue('HTTP_USER_AGENT') ?? 'unknown';

Expand Down

0 comments on commit 2b24c42

Please sign in to comment.