From 94ccdcb8a4d6f7789fd39c4b6e9876bb689de9a4 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Thu, 5 May 2016 01:03:17 -0500 Subject: [PATCH] Allow uppercase letters in is_unqualified_hostname as well. --- src/etc/inc/util.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc index 5de5bd1c14..c2ee367547 100644 --- a/src/etc/inc/util.inc +++ b/src/etc/inc/util.inc @@ -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;