Merge pull request 'Fixed bug #3 which caused xss_clean() to fail when calling input variables from arrays.' (#5) from fix/3 into master
Reviewed-on: #5
This commit is contained in:
commit
d6863d3f51
|
@ -9,7 +9,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.4.0",
|
"php": ">=8.1.0",
|
||||||
"fuzeworks/core": "~1.3.0",
|
"fuzeworks/core": "~1.3.0",
|
||||||
"fuzeworks/mvcr": "~1.3.0",
|
"fuzeworks/mvcr": "~1.3.0",
|
||||||
"fuzeworks/objectstorage": "~1.3.0"
|
"fuzeworks/objectstorage": "~1.3.0"
|
||||||
|
|
|
@ -375,10 +375,8 @@ class Security {
|
||||||
// Is the string an array?
|
// Is the string an array?
|
||||||
if (is_array($str))
|
if (is_array($str))
|
||||||
{
|
{
|
||||||
while (list($key) = each($str))
|
foreach ($str as $key => $value)
|
||||||
{
|
$str[$key] = $this->xss_clean($value);
|
||||||
$str[$key] = $this->xss_clean($str[$key]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue