diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-01-26 22:10:59 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-01-26 22:10:59 +0300 |
commit | fafcecaf8f6744416f0c905d5434198a969d2d86 (patch) | |
tree | a820981a3c25eed0f75443250fcc8bb891490af3 /lib | |
parent | 0a71213fa05ac9bd025d3923d689b2e3db8deeef (diff) |
Do not update CSP on calls to files_sharing
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 7e86f801..63d23116 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -139,7 +139,7 @@ class Application extends App { try { $path = $container->getServer()->getRequest()->getPathInfo(); } catch (\Exception $e) {} - if (strpos($path, '/apps/files') === 0 && $container->getServer()->getAppManager()->isEnabledForUser('federation')) { + if (strpos($path, '/apps/files/') === 0 && $container->getServer()->getAppManager()->isEnabledForUser('federation')) { /** @var FederationService $federationService */ $federationService = \OC::$server->query(FederationService::class); |