From bf254a26048f2f5429d29ac2390a8887af01105b Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Thu, 20 Mar 2014 00:54:48 +0400 Subject: [PATCH] Improve filtration of special characters (see Issue #30) --- src/mibew/libs/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibew/libs/common.php b/src/mibew/libs/common.php index a96a2c2e..e950f81e 100644 --- a/src/mibew/libs/common.php +++ b/src/mibew/libs/common.php @@ -859,7 +859,7 @@ function sanitize_reg_escape($string) function safe_htmlspecialchars($string) { - $string = preg_replace('/[\x00-\x08\x10-\x1f]/', '', $string); + $string = preg_replace('/[\x00-\x08\x10-\x1f\v]/', '', $string); return htmlspecialchars($string, ENT_QUOTES); }