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

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;