replace FILTER_SANITIZE_STRING
This commit is contained in:
parent
54cd7c5a7e
commit
dacc074455
@ -379,10 +379,10 @@ class helper {
|
|||||||
$text = password_hash($text, PASSWORD_BCRYPT);
|
$text = password_hash($text, PASSWORD_BCRYPT);
|
||||||
break;
|
break;
|
||||||
case self::FILTER_STRING_LONG:
|
case self::FILTER_STRING_LONG:
|
||||||
$text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500000);
|
$text = mb_substr(filter_var($text, FILTER_SANITIZE_FULL_SPECIAL_CHARS), 0, 500000);
|
||||||
break;
|
break;
|
||||||
case self::FILTER_STRING_SHORT:
|
case self::FILTER_STRING_SHORT:
|
||||||
$text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500);
|
$text = mb_substr(filter_var($text, FILTER_SANITIZE_FULL_SPECIAL_CHARS), 0, 500);
|
||||||
break;
|
break;
|
||||||
case self::FILTER_TIMESTAMP:
|
case self::FILTER_TIMESTAMP:
|
||||||
$text = date('Y-m-d H:i:s', $text);
|
$text = date('Y-m-d H:i:s', $text);
|
||||||
|
Loading…
Reference in New Issue
Block a user