Improve filtration of special characters (see Issue #30)

This commit is contained in:
Fedor A. Fetisov 2014-03-20 00:54:48 +04:00
parent e51e3ad24d
commit bf254a2604

View File

@ -859,7 +859,7 @@ function sanitize_reg_escape($string)
function safe_htmlspecialchars($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); return htmlspecialchars($string, ENT_QUOTES);
} }