From e4ea007334a717a615115a0e8bfded9738e3f025 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Thu, 5 May 2016 02:15:00 -0500 Subject: [PATCH] This was right to begin with. Revert "Allow uppercase letters in is_unqualified_hostname as well." This reverts commit 3d5fb131796ba6d9c5d53efe77080d7ddb334f22. --- 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 c2ee367547..5de5bd1c14 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-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;