Skip to content

Commit 2847461

Browse files
committed
Only run the AnonymousOptionsPlugion on Anonymous requests
Fixes #12744 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent a915594 commit 2847461

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function initialize(\Sabre\DAV\Server $server) {
5050
* @return bool
5151
*/
5252
public function handleAnonymousOptions(RequestInterface $request, ResponseInterface $response) {
53-
if ($request->getMethod() === 'OPTIONS') {
53+
if ($request->getHeader('Authorization') === null && $request->getMethod() === 'OPTIONS') {
5454
/** @var CorePlugin $corePlugin */
5555
$corePlugin = $this->server->getPlugin('core');
5656
// setup a fake tree for anonymous access

0 commit comments

Comments
 (0)