Merge pull request #16924 from nextcloud/td/csp/eval

Add deprecation warning
This commit is contained in:
Roeland Jago Douma 2019-08-29 19:14:25 +02:00 committed by GitHub
commit 91003c9c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ class EmptyContentSecurityPolicy {
* @param bool $state
* @return $this
* @since 8.1.0
* @deprecated Eval should not be used anymore. Please update your scripts. This function will stop functioning in a future version of Nextcloud.
*/
public function allowEvalScript($state = true) {
$this->evalScriptAllowed = $state;