Make filtration of special characters unicode safe

This commit is contained in:
Fedor A. Fetisov 2014-03-29 00:55:03 +04:00 committed by root autocommit
parent 8f56f0ea81
commit d141167c3e

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\v]/', '', $string); $string = preg_replace('/[\x00-\x08\x10-\x1f\x0b]/', '', $string);
return htmlspecialchars($string, ENT_QUOTES); return htmlspecialchars($string, ENT_QUOTES);
} }