Merge pull request #16616 from nextcloud/dep/setEvalScript

setting unsafe-eval is deprecated
This commit is contained in:
Roeland Jago Douma 2019-07-31 11:01:38 +02:00 committed by GitHub
commit 1d8b09aa86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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;