mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 18:38:31 +03:00
Improve filtration of special characters
This commit is contained in:
parent
b399cf74e9
commit
d7153a4bf1
@ -164,6 +164,6 @@ function sanitize_reg_escape($string)
|
||||
*/
|
||||
function safe_htmlspecialchars($string)
|
||||
{
|
||||
$string = preg_replace('/[\x00-\x08\x10-\x1f]/', '', $string);
|
||||
$string = preg_replace('/[\x00-\x08\x0b\x0c\x0e-\x1f]/', '', $string);
|
||||
return htmlspecialchars($string, ENT_QUOTES);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user