New Zenner
- Join Date:
- Jul 2009
- Posts:
- 18
- Plugin Contributions:
- 1
Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array
Zen Cart 2.2.2
Parameters in the query string can be arrays, but the sanitation code in admin/includes/init_includes/init_general_funcs.php assumes that all the parameters are scalar and produces an error when an argument is an array.
if (isset($_GET) & sizeof($_GET) > 0 ) {
foreach ($_GET as $key=>$value) {
// Needs to check for an array .....
$_GET[$key] = strip_tags($value);
}
}