summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-04-09 12:27:28 +0200
committerGitHub <noreply@github.com>2019-04-09 12:27:28 +0200
commit1416ef65e43a30c4bb6bf38ce49336ca1d693617 (patch)
tree51b945cc5532e1f53e8d0dfbfa737cf036192416
parentec4b1584fe46df81e3eda1ff374f575d153a966f (diff)
parent3b1e16458d59ea53b170d6099df3454d0590e87a (diff)
downloadnextcloud-server-1416ef65e43a30c4bb6bf38ce49336ca1d693617.tar.gz
nextcloud-server-1416ef65e43a30c4bb6bf38ce49336ca1d693617.zip
Merge pull request #15016 from nextcloud/enh/no-eval-default-response
Forbid eval on legacy responses
-rw-r--r--lib/private/legacy/response.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/response.php b/lib/private/legacy/response.php
index bfee5aadb4d..361a085c0c0 100644
--- a/lib/private/legacy/response.php
+++ b/lib/private/legacy/response.php
@@ -84,7 +84,7 @@ class OC_Response {
* @see \OCP\AppFramework\Http\Response::getHeaders
*/
$policy = 'default-src \'self\'; '
- . 'script-src \'self\' \'unsafe-eval\' \'nonce-'.\OC::$server->getContentSecurityPolicyNonceManager()->getNonce().'\'; '
+ . 'script-src \'self\' \'nonce-'.\OC::$server->getContentSecurityPolicyNonceManager()->getNonce().'\'; '
. 'style-src \'self\' \'unsafe-inline\'; '
. 'frame-src *; '
. 'img-src * data: blob:; '