From d9b095d01ee0be3e37517f0a5a25cf83e9e2d43a Mon Sep 17 00:00:00 2001 From: psc Date: Wed, 24 Feb 2010 15:33:33 +0000 Subject: [PATCH] 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 --- trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc | 4 ++++ 1 file changed, 4 insertions(+) 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!"); -- 2.30.2