diff options
author | Andrew Dolgov <[email protected]> | 2021-02-06 00:17:41 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-06 00:17:41 +0300 |
commit | a544123b593f3c20d1bf6623ba61e5be61b47996 (patch) | |
tree | 9f5551f2afb938e18ea86172189fc8fdd2ef8f4b /include | |
parent | 6e774a58fe6c509e2cd16d222ed414edc9f10b17 (diff) |
fix clean() for arrays and user plugin list
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 2db559a92..f870f3382 100644 --- a/include/functions.php +++ b/include/functions.php @@ -244,7 +244,7 @@ // this is used for user http parameters unless HTML code is actually needed function clean($param) { if (is_array($param)) { - return trim(array_map("strip_tags", $param)); + return array_map("trim", array_map("strip_tags", $param)); } else if (is_string($param)) { return trim(strip_tags($param)); } else { |