Code

updated check for hostnames^
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Oct 2007 14:36:51 +0000 (14:36 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Oct 2007 14:36:51 +0000 (14:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7667 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 2d258716d34f73edfabd48a70db1f58e361cd457..f20ec5c9ddb4f94b8364a321e90de6d5af65e359 100644 (file)
@@ -957,7 +957,7 @@ function is_phone_nr($nr)
 
 function is_dns_name($str)
 {
-  return(preg_match("/^[a-z0-9\.\-_\:]*$/i",$str));
+  return(preg_match("/^[a-z0-9\.\-]*$/i",$str));
 }
 
 function is_url($url)