From dacc074455c9da4c4b6383d3193413e801b8f38d Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 4 Oct 2022 08:41:19 +0200 Subject: [PATCH] replace FILTER_SANITIZE_STRING --- core/class/helper.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index d2584911..e4c9aa59 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -379,10 +379,10 @@ class helper { $text = password_hash($text, PASSWORD_BCRYPT); break; case self::FILTER_STRING_LONG: - $text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500000); + $text = mb_substr(filter_var($text, FILTER_SANITIZE_FULL_SPECIAL_CHARS), 0, 500000); break; case self::FILTER_STRING_SHORT: - $text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500); + $text = mb_substr(filter_var($text, FILTER_SANITIZE_FULL_SPECIAL_CHARS), 0, 500); break; case self::FILTER_TIMESTAMP: $text = date('Y-m-d H:i:s', $text);