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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2019-04-10 17:46:19 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-04-10 17:46:19 +0300
commitdfe9e3fb2e063a0cf4ab4849a4329f05cb6255b7 (patch)
tree6a6b3eeaef6d4708358032322ef3a1b7fd5c9977 /apps
parentd1e4d614daa52503b1a0bb5ebcaf6a7d2b33edb7 (diff)
Do not allow JavaScript "eval" in the public share auth page with Talk
Talk no longer uses JavaScript "eval", so the Content Security Policy can now be configured to prevent its use in the public share authentication page when the password is protected by Talk. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/Controller/ShareController.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php
index 99685f671d3..3bd65cd3974 100644
--- a/apps/files_sharing/lib/Controller/ShareController.php
+++ b/apps/files_sharing/lib/Controller/ShareController.php
@@ -164,7 +164,6 @@ class ShareController extends AuthPublicShareController {
$csp = new ContentSecurityPolicy();
$csp->addAllowedConnectDomain('*');
$csp->addAllowedMediaDomain('blob:');
- $csp->allowEvalScript(true);
$response->setContentSecurityPolicy($csp);
}
@@ -185,7 +184,6 @@ class ShareController extends AuthPublicShareController {
$csp = new ContentSecurityPolicy();
$csp->addAllowedConnectDomain('*');
$csp->addAllowedMediaDomain('blob:');
- $csp->allowEvalScript(true);
$response->setContentSecurityPolicy($csp);
}