From 8d5ca039bb0669b0184e1f7cb46d7a2605e708c3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Nov 2010 16:17:24 +0000 Subject: [PATCH] Fixed regex for domains git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20301 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/departments/class_domain.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/plugins/admin/departments/class_domain.inc b/gosa-core/plugins/admin/departments/class_domain.inc index b72a68d45..cd73d47ec 100644 --- a/gosa-core/plugins/admin/departments/class_domain.inc +++ b/gosa-core/plugins/admin/departments/class_domain.inc @@ -54,7 +54,7 @@ class domain extends department $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 \.,\-_]/"); } -- 2.30.2