From 136a4f59a0315b4e2314657b2643f1ee6b1298c4 Mon Sep 17 00:00:00 2001 From: Benoit Mortier <benoit.mortier@opensides.be> Date: Wed, 29 Feb 2012 11:22:05 +0100 Subject: [PATCH] Fixes: #567 FD allows DNS entries with '_' (underscores) in hostnames --- include/class_tests.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_tests.inc b/include/class_tests.inc index d944e1102..166242eab 100644 --- a/include/class_tests.inc +++ b/include/class_tests.inc @@ -49,7 +49,7 @@ class tests { /*! \brief Test if the given string contains characters allowed in a DNS name */ public static function is_dns_name($str) { - return(preg_match("/^[a-z0-9\.\-_]*$/i",$str)); + return(preg_match("/^[a-z0-9\.\-]*$/i",$str)); } -- GitLab