From db2c4620bfb39f739881a81c4245b108b7fef2c2 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 4 Oct 2022 09:19:58 +0200 Subject: [PATCH] helper trim null --- core/class/helper.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index cb72b5be..e4c9aa59 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -333,6 +333,7 @@ class helper { * @return string */ public static function filter($text, $filter) { + $text = trim($text); switch($filter) { case self::FILTER_BOOLEAN: $text = (bool) $text;