Code

Only characters are allowed in filter names
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 09:51:29 +0000 (09:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 09:51:29 +0000 (09:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16483 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userFilterEditor.inc

index 39aed98416a1b6717b184662d015db62d73a6536..82cf1b11a3ee226850ce2cb52e90642e6a34d55d 100644 (file)
@@ -182,10 +182,10 @@ class userFilterEditor extends plugin
     // Check if the name is given
     if(empty($this->name)){
       $msgs[] = msgPool::required(_("Name"));
-    }elseif(preg_match("/[^a-z0-9\-_ ]/i", $this->name)){
+    }elseif(preg_match("/[^a-z0-9]/i", $this->name)){
       
       // Check for a valid name, no special chars here - in particular no ; 
-      $msgs[] = msgPool::invalid(_("Name"), $this->name,"/[a-z0-9\-_ ]/i");
+      $msgs[] = msgPool::invalid(_("Name"), $this->name,"/[a-z0-9]/i");
     }  
 
     // Description is a must value.