diff --git a/includes/model/User_model.php b/includes/model/User_model.php index 4c08d4cc..9e800118 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -114,7 +114,7 @@ function User_validate_Nick($nick) if (strlen($nick) == 0 || strlen($nick) > 24) { return new ValidationResult(false, $nick); } - if (preg_match('/([^\p{L}\p{N}\-_. ]+)/ui', $nick)) { + if (preg_match(config('username_regex', '/([^\p{L}\p{N}\-_. ]+)/ui'), $nick)) { return new ValidationResult(false, $nick); }