From: psc Date: Thu, 11 Nov 2010 15:03:33 +0000 (+0000) Subject: Apply fix for #5583 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4626d913e2f870d47c41831b29ab336f6ad030d6;p=gosa.git Apply fix for #5583 Disallow '\' and '"' in object group names as they lead to LDAP errors git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20227 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 e9456ef7a..a9695489a 100644 --- a/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -930,8 +930,8 @@ class ogroup extends plugin $message[]= msgPool::required(_("Name")); } - if (preg_match('/[=,+<>#;]/', $this->cn)) { - $message[] = msgPool::invalid(_("Name"), $this->cn, "/[^=+,<>#;]/"); + if (preg_match('/[\\\\=\",+<>#;]/', $this->cn)) { + $message[] = msgPool::invalid(_("Name"), $this->cn, "/[^\\\\=\"+,<>#;]/"); } /* To many different object types? */