summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 057f5ab)
raw | patch | inline | side by side (parent: 057f5ab)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 12 Mar 2010 09:51:29 +0000 (09:51 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc
index 39aed98416a1b6717b184662d015db62d73a6536..82cf1b11a3ee226850ce2cb52e90642e6a34d55d 100644 (file)
// 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.