forked from .cyb/cyberman
Limit domain name length
This commit is contained in:
parent
3f87e18a6e
commit
f0a6048185
|
@ -65,7 +65,7 @@ sub hash_password {
|
|||
|
||||
sub check_name {
|
||||
my $name = shift;
|
||||
if ($name =~ m/^[a-z0-9]([a-z0-9\-_]*[a-z0-9])?$/) {
|
||||
if ($name =~ m/^[a-z0-9]([a-z0-9\-_]*[a-z0-9])?$/ && length($name) <= 63) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue