From 85a78c9cd1c85c99ba8cc0494cd0bd064b1c2440 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Thu, 15 May 2014 15:54:16 +0400 Subject: [PATCH] Improve filtration of special characters --- 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 fec34eca..3cb568f6 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\x0b]/', '', $string); + $string = preg_replace('/[\x00-\x08\x0b\x0c\x0e-\x1f]/', '', $string); return htmlspecialchars($string, ENT_QUOTES); }