Allow admin to create GM, God etc. names
This commit is contained in:
slawkens
2022-05-16 14:33:50 +02:00
parent 802e6c228c
commit 734a63f6c3
3 changed files with 70 additions and 30 deletions

View File

@@ -323,16 +323,6 @@ class Validator
}
}
if(strspn($name, "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM- '") != $name_length) {
self::$lastError = 'This name contains invalid letters, words or format. Please use only a-Z, - , \' and space.';
return false;
}
if(!preg_match("/[A-z ']/", $name)) {
self::$lastError = 'Your name containst illegal characters.';
return false;
}
return true;
}