From cab77dff2a8cbca5a0ae65a776fc28f1d51acbbf Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 4 Jun 2008 11:03:28 +0000 Subject: [PATCH] Updated is_domain check to include - git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/utils/class_tests.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/utils/class_tests.inc b/gosa-core/include/utils/class_tests.inc index 4c2d40d5d..d67ab744a 100644 --- a/gosa-core/include/utils/class_tests.inc +++ b/gosa-core/include/utils/class_tests.inc @@ -127,7 +127,7 @@ class tests { /* Simple is domain check, it checks if the given string looks like "string(...).string" */ public static function is_domain($str) { - return(preg_match("/^([a-z0-9i\-]*)\.[a-z0-9]*$/i",$str)); + return(preg_match("/^([a-z0-9\-]*)\.[a-z0-9\-]*$/i",$str)); } -- 2.30.2