From bf7a20d05b7b6884b13d0fc448e50501a1682dcb Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 17 Nov 2023 11:19:15 +0200 Subject: [PATCH] fix PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead --- api/src/loader/security.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/loader/security.php b/api/src/loader/security.php index 470c19d42c..02c6d9e0be 100755 --- a/api/src/loader/security.php +++ b/api/src/loader/security.php @@ -66,13 +66,13 @@ function _check_script_tag(&$var,$name='',$log=true) { if($log) { - error_log("*** _check_script_tag($name): unset(${name}[$key]) with value '$val'"); + error_log("*** _check_script_tag($name): unset({$name}[$key]) with value '$val'"); } unset($var[$key]); } elseif($log) { - error_log("*** _check_script_tag($name): HtmlLawed::purify(${name}[$key]) succeeded '$val' --> '{$var[$key]}'"); + error_log("*** _check_script_tag($name): HtmlLawed::purify({$name}[$key]) succeeded '$val' --> '{$var[$key]}'"); } } } @@ -192,4 +192,4 @@ function json_php_unserialize($str, $allow_not_serialized=false) return false; } return $str; -} +} \ No newline at end of file