mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
Improve Geyser username validation (add *)
This commit is contained in:
parent
bfbdf1c3b9
commit
785c58121f
@ -11,7 +11,7 @@ class Check {
|
||||
if ($page->is_uuid($name) && preg_match("/^[0-9a-zA-Z-]{32,36}$/", $name)) {
|
||||
$column = "uuid";
|
||||
$name = $page->uuid_dashify($name);
|
||||
} else if (strlen($name) > 16 || !preg_match("/^[0-9a-zA-Z._]{1,16}$/", $name)) {
|
||||
} else if (strlen($name) > 16 || !preg_match("/^[*.]{0,1}[0-9a-zA-Z_]{1,16}$/", $name)) {
|
||||
$this->println($page->t("error.name.invalid"));
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user