mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 00:14:40 +03:00
Improve filtration of special characters
This commit is contained in:
parent
a844768d08
commit
85a78c9cd1
@ -859,7 +859,7 @@ function sanitize_reg_escape($string)
|
|||||||
|
|
||||||
function safe_htmlspecialchars($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);
|
return htmlspecialchars($string, ENT_QUOTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user