From: psc Date: Wed, 24 Feb 2010 15:33:33 +0000 (+0000) Subject: Apply fix for #1957 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d9b095d01ee0be3e37517f0a5a25cf83e9e2d43a;p=gosa.git Apply fix for #1957 Check object group names for characters which would need special quoting (,=+<>#). git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15698 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc index 991937afa..d36a32fd5 100644 --- a/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -932,6 +932,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!");