mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Fix merge error
This commit is contained in:
parent
f8b5f8fdfc
commit
31edb21a76
@ -477,8 +477,9 @@ function validateCidr($cidr)
|
|||||||
return $netmask <= 128;
|
return $netmask <= 128;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
// Validates a host or FQDN
|
|
||||||
|
// Validates a host or FQDN
|
||||||
function validate_host($host) {
|
function validate_host($host) {
|
||||||
return preg_match('/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i', $host);
|
return preg_match('/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i', $host);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user