Merged in bugfix/PMCORE-4097 (pull request #8685)

PMCORE-4097

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Luciana Nuñez
2023-01-10 13:17:40 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -430,7 +430,7 @@ class InputFilter
if (is_array($input)) { if (is_array($input)) {
if (count($input)) { if (count($input)) {
foreach ($input as $i => $val) { foreach ($input as $i => $val) {
if (is_array($val) || is_object($val) && count($val)) { if (is_array($val) || is_object($val) && is_countable($val) && count($val)) {
$input[$i] = $this->xssFilterHard($val); $input[$i] = $this->xssFilterHard($val);
} else { } else {
if (!empty($val)) { if (!empty($val)) {