mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Fix merge error
This commit is contained in:
parent
f8b5f8fdfc
commit
31edb21a76
1 changed files with 3 additions and 2 deletions
|
@ -477,8 +477,9 @@ function validateCidr($cidr)
|
|||
return $netmask <= 128;
|
||||
}
|
||||
return false;
|
||||
|
||||
// Validates a host or FQDN
|
||||
}
|
||||
|
||||
// Validates a host or FQDN
|
||||
function validate_host($host) {
|
||||
return preg_match('/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i', $host);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue