From 04926e4ba68d740f725b0c5b5aa3911f42215ba3 Mon Sep 17 00:00:00 2001 From: Epagris Date: Sun, 12 Oct 2025 11:36:30 +0200 Subject: [PATCH] - string sanitizing does not remove mid-line spaces --- common_func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_func.php b/common_func.php index d2cb088..470e800 100644 --- a/common_func.php +++ b/common_func.php @@ -2,7 +2,7 @@ function explode_list(string $str) : array { if (($str = trim($str, " \n\r\t\v\0,")) !== "") { - return array_map(fn($a) => trim($a), explode(",", str_replace(" ", "", $str))); + return array_map(fn($a) => trim($a), explode(",", trim($str))); } else { return []; }