From ec28f390eeed830096d5cd9f19639e290e5d59a8 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Mar 2010 09:51:29 +0000 Subject: [PATCH] Only characters are allowed in filter names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16483 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userFilterEditor.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.30.2