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:
Chris Buechler 2016-05-05 02:15:00 -05:00
parent 3ce8097f24
commit e4ea007334

View File

@ -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;