mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow uppercase letters in is_unqualified_hostname as well.
This commit is contained in:
parent
a576ae5bae
commit
94ccdcb8a4
@ -1009,7 +1009,7 @@ function is_unqualified_hostname($hostname) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (preg_match('/^(?:[a-z0-9_]|[a-z0-9_][a-z0-9_\-]*[a-z0-9_])$/i', $hostname)) {
|
||||
if (preg_match('/^(?:[a-zA-Z0-9_]|[a-zA-Z0-9_][a-zA-Z0-9_\-]*[a-zA-Z0-9_])$/i', $hostname)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user