From: hickert Date: Fri, 19 Nov 2010 16:17:24 +0000 (+0000) Subject: Fixed regex for domains X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d5ca039bb0669b0184e1f7cb46d7a2605e708c3;p=gosa.git Fixed regex for domains git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20301 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 \.,\-_]/"); }