From: hickert Date: Thu, 25 Feb 2010 12:58:29 +0000 (+0000) Subject: Check to prevent special chars in ogroup. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c9ceb7c2349b17583e345006016bdcbc3256c4a;p=gosa.git Check to prevent special chars in ogroup. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15710 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc index d951b0b08..811096435 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -814,6 +814,10 @@ class ogroup extends plugin $message[]= msgPool::required(_("Name")); } + if (preg_match('/[=,+<>#;]/', $this->cn)) { + $message[] = msgPool::invalid(_("Name"), $this->cn, "/[^=+,<>#;]/"); + } + /* To many different object types? */ if (strlen($this->gosaGroupObjects) > 4){ $message[]= _("You can combine two different object types at maximum, only!");