Code

Updated timezone class
[gosa.git] / gosa-core / include / utils / class_tests.inc
index 4c2d40d5d1c4f978b0640e377c4327b94f40974f..136dca87ab87c2b393447d2f8f6a5801a04f0673 100644 (file)
@@ -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));
   }
 
 
@@ -197,7 +197,7 @@ class tests {
    */
   public static function is_ip_range($ip1,$ip2)
   {
-    if(!is_ip($ip1) || !is_ip($ip2)){
+    if(!tests::is_ip($ip1) || !tests::is_ip($ip2)){
       return(FALSE);
     }else{
       $ar1 = split("\.",$ip1);