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 {
|
sub check_name {
|
||||||
my $name = shift;
|
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;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue