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