From: hickert Date: Wed, 4 Jun 2008 11:03:28 +0000 (+0000) Subject: Updated is_domain check to include - X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cab77dff2a8cbca5a0ae65a776fc28f1d51acbbf;p=gosa.git Updated is_domain check to include - git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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)); }