mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-12 21:41:09 +00:00
whitelist new chars
This commit is contained in:
parent
fb6e3dc503
commit
d35da891be
@ -68,7 +68,7 @@ class Filter {
|
||||
|
||||
public static function bio(string $string) {
|
||||
|
||||
$string = preg_replace('/[^\s\w\.\,\:\;\@\#\=\-\_\~\*\/\(\)\[\]\<\>\"\']+/u', '', $string);
|
||||
$string = preg_replace('/[^\s\w\.\,\:\;\@\?\!\+\`\&\^\%\#\=\-\_\~\*\/\(\)\[\]\<\>\"\']+/u', '', $string);
|
||||
|
||||
$string = mb_substr($string, 0, 500);
|
||||
|
||||
@ -77,7 +77,7 @@ class Filter {
|
||||
|
||||
public static function post(string $string) {
|
||||
|
||||
$string = preg_replace('/[^\s\w\.\,\:\;\@\#\=\-\_\~\*\/\(\)\[\]\<\>\"\']+/u', '', $string);
|
||||
$string = preg_replace('/[^\s\w\.\,\:\;\@\?\!\+\`\&\^\%\#\=\-\_\~\*\/\(\)\[\]\<\>\"\']+/u', '', $string);
|
||||
|
||||
$string = mb_substr($string, 0, 140);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user