aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-12-04 13:10:22 +0100
committerGitHub <noreply@github.com>2018-12-04 13:10:22 +0100
commit43cb51d374421cca2bef3008b3adad9d9668a726 (patch)
tree0a7abb0d0ad24580dfebe3f3567cff657005ee93 /apps
parent897d0f72d3875b7230b47e667ad5a3d0e26987f8 (diff)
parent28474612e4f5418bb3c3a9881a04a6e73a16e632 (diff)
downloadnextcloud-server-43cb51d374421cca2bef3008b3adad9d9668a726.tar.gz
nextcloud-server-43cb51d374421cca2bef3008b3adad9d9668a726.zip
Merge pull request #12808 from nextcloud/fix/12774/anonymous_options_only_anoynoums
Only run the AnonymousOptionsPlugion on Anonymous requests
Diffstat (limited to 'apps')
-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 b69c1e0286c..390cb4a9c67 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') {
+ if ($request->getHeader('Authorization') === null && $request->getMethod() === 'OPTIONS') {
/** @var CorePlugin $corePlugin */
$corePlugin = $this->server->getPlugin('core');
// setup a fake tree for anonymous access