diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-04-09 12:27:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 12:27:28 +0200 |
commit | 1416ef65e43a30c4bb6bf38ce49336ca1d693617 (patch) | |
tree | 51b945cc5532e1f53e8d0dfbfa737cf036192416 | |
parent | ec4b1584fe46df81e3eda1ff374f575d153a966f (diff) | |
parent | 3b1e16458d59ea53b170d6099df3454d0590e87a (diff) | |
download | nextcloud-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.php | 2 |
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:; ' |