mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-06 16:04:41 +03:00
Improve filtration of special characters (see Issue #30)
This commit is contained in:
parent
e51e3ad24d
commit
bf254a2604
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user