summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68018c4)
raw | patch | inline | side by side (parent: 68018c4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Nov 2010 16:17:24 +0000 (16:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Nov 2010 16:17:24 +0000 (16:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20301 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/class_domain.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/departments/class_domain.inc b/gosa-core/plugins/admin/departments/class_domain.inc
index b72a68d45c64dbe7b6f0522a3099d3c870d14f5d..cd73d47ecb7bda2444881e4bda3c53ed2e6b026c 100644 (file)
$message[]= msgPool::required(_("Name"));
}elseif(tests::is_department_name_reserved($this->dc,$this->base)){
$message[]= msgPool::reserved(_("Name"));
- }elseif(!preg_match ('/[a-z0-9 \.,\-_]/i', $this->dc)){
+ }elseif(preg_match ('/[^a-z0-9 \.,\-_]/i', $this->dc)){
$message[]= msgPool::invalid(_("Name"), $this->dc, "/[a-z0-9 \.,\-_]/");
}