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;