From: hickert Date: Fri, 12 Mar 2010 09:51:29 +0000 (+0000) Subject: Only characters are allowed in filter names X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec28f390eeed830096d5cd9f19639e290e5d59a8;p=gosa.git Only characters are allowed in filter names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16483 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc index 39aed9841..82cf1b11a 100644 --- a/gosa-core/include/class_userFilterEditor.inc +++ b/gosa-core/include/class_userFilterEditor.inc @@ -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.