From d7153a4bf17b5ba9d49210fa87c80c27bd2e64ed Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 15 May 2014 12:09:16 +0000 Subject: [PATCH] Improve filtration of special characters --- src/mibew/libs/common/string.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibew/libs/common/string.php b/src/mibew/libs/common/string.php index d0238aee..e1fb6a9b 100644 --- a/src/mibew/libs/common/string.php +++ b/src/mibew/libs/common/string.php @@ -164,6 +164,6 @@ function sanitize_reg_escape($string) */ function safe_htmlspecialchars($string) { - $string = preg_replace('/[\x00-\x08\x10-\x1f]/', '', $string); + $string = preg_replace('/[\x00-\x08\x0b\x0c\x0e-\x1f]/', '', $string); return htmlspecialchars($string, ENT_QUOTES); }