From a544123b593f3c20d1bf6623ba61e5be61b47996 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Feb 2021 00:17:41 +0300 Subject: fix clean() for arrays and user plugin list --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') 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 { -- cgit v1.2.3-54-g00ecf