summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-11-20 16:02:13 +0100
committerRobin Appelman <robin@icewind.nl>2018-11-23 15:36:40 +0100
commitffd77780406532964bf617f105ff7bcf2ee9c8f7 (patch)
treef2029635f86153bf7c4c95bec4ea4791dbce1ca1 /apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php
parent75c373705408339dc71e5ba6775737b896dd5034 (diff)
downloadnextcloud-server-ffd77780406532964bf617f105ff7bcf2ee9c8f7.tar.gz
nextcloud-server-ffd77780406532964bf617f105ff7bcf2ee9c8f7.zip
extend anonymous options to work on every dav url
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php
index 7a62f706378..b69c1e0286c 100644
--- a/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php
@@ -50,7 +50,7 @@ class AnonymousOptionsPlugin extends ServerPlugin {
* @return bool
*/
public function handleAnonymousOptions(RequestInterface $request, ResponseInterface $response) {
- if ($request->getMethod() === 'OPTIONS' && $request->getPath() === '') {
+ if ($request->getMethod() === 'OPTIONS') {
/** @var CorePlugin $corePlugin */
$corePlugin = $this->server->getPlugin('core');
// setup a fake tree for anonymous access