Merge pull request #16924 from nextcloud/td/csp/eval
Add deprecation warning
This commit is contained in:
commit
91003c9c90
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue