summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 12e945f)
raw | patch | inline | side by side (parent: 12e945f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Nov 2010 16:21:34 +0000 (16:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Nov 2010 16:21:34 +0000 (16:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20303 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/departments/class_dcObject.inc | patch | blob | history | |
gosa-core/plugins/admin/departments/class_domain.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/departments/class_dcObject.inc b/gosa-core/plugins/admin/departments/class_dcObject.inc
index 6e8abe616871be4fdaecaa35f5c544b5155bd67e..7db316fe159857171b70964985c97c5dd2fde063 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)){
- $message[]= msgPool::invalid(_("Name"), $this->dc, "/[a-z0-9 \.,\-_]/");
+ }elseif(preg_match ('/[^a-z0-9 \.,\-_]/i', $this->dc)){
+ $message[]= msgPool::invalid(_("Name"), $this->dc, "/[a-z0-9 \.,\-_]/i");
}
/* Check description */
diff --git a/gosa-core/plugins/admin/departments/class_domain.inc b/gosa-core/plugins/admin/departments/class_domain.inc
index cd73d47ecb7bda2444881e4bda3c53ed2e6b026c..f73a997ea2a575e9386320d519be46820f77e86f 100644 (file)
}elseif(tests::is_department_name_reserved($this->dc,$this->base)){
$message[]= msgPool::reserved(_("Name"));
}elseif(preg_match ('/[^a-z0-9 \.,\-_]/i', $this->dc)){
- $message[]= msgPool::invalid(_("Name"), $this->dc, "/[a-z0-9 \.,\-_]/");
+ $message[]= msgPool::invalid(_("Name"), $this->dc, "/[a-z0-9 \.,\-_]/i");
}
/* Check description */