Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-01-26 22:10:59 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2021-01-26 22:10:59 +0300
commitfafcecaf8f6744416f0c905d5434198a969d2d86 (patch)
treea820981a3c25eed0f75443250fcc8bb891490af3 /lib
parent0a71213fa05ac9bd025d3923d689b2e3db8deeef (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.php2
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);