Skip to content

Commit 8432e89

Browse files
committed
extend anonymous options to work on every dav url
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent a9de88e commit 8432e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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' && $request->getPath() === '') {
53+
if ($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)