From bc12ae8a7b1014555d0780f052e13bbd821f41e2 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 19 Oct 2014 18:38:13 -0500 Subject: Underscores are valid characters in domains. Fixes #3219 --- etc/inc/util.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 18f3905..a9e533f 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -644,7 +644,7 @@ function is_domain($domain) { if (!is_string($domain)) return false; - if (preg_match('/^(?:(?:[a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])\.)*(?:[a-z0-9]|[a-z0-9][a-z0-9\-]*[a-z0-9])$/i', $domain)) + if (preg_match('/^(?:(?:[a-z_0-9]|[a-z_0-9][a-z_0-9\-]*[a-z_0-9])\.)*(?:[a-z_0-9]|[a-z_0-9][a-z_0-9\-]*[a-z_0-9])$/i', $domain)) return true; else return false; -- cgit v1.1