1
0
mirror of synced 2026-02-22 14:47:18 +00:00

Fix hostname regex check

Set a minimal length so that the check doesn't fail
This commit is contained in:
Dmitry Nedospasov
2010-07-18 19:52:29 +02:00
parent 0e16a65d80
commit 1aeb23823c

View File

@@ -1548,7 +1548,7 @@ sub checkOption
message => "must be valid IPv4.\n",
},
hostname => {
check => qr/^[a-z0-9][a-z0-9.-]{254}$/i,
check => qr/^[a-z0-9][a-z0-9.-]{0,254}$/i,
message => "must be a valid hostname.\n",
},
supportedFs => {