From 417fbb5d6067fc25e16cae2155632d591b1d6b15 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 30 Jul 2019 16:27:38 +0200 Subject: [PATCH] setting unsafe-eval is deprecated This will be removed in a future version of Nextcloud. Signed-off-by: Roeland Jago Douma --- lib/private/Security/CSP/ContentSecurityPolicy.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/Security/CSP/ContentSecurityPolicy.php b/lib/private/Security/CSP/ContentSecurityPolicy.php index 8fd4df05c3..a066c986f1 100644 --- a/lib/private/Security/CSP/ContentSecurityPolicy.php +++ b/lib/private/Security/CSP/ContentSecurityPolicy.php @@ -54,6 +54,8 @@ class ContentSecurityPolicy extends \OCP\AppFramework\Http\ContentSecurityPolicy /** * @param boolean $evalScriptAllowed + * + * @deprecated 17.0.0 Unsafe eval should not be used anymore. */ public function setEvalScriptAllowed(bool $evalScriptAllowed) { $this->evalScriptAllowed = $evalScriptAllowed;