From 4626d913e2f870d47c41831b29ab336f6ad030d6 Mon Sep 17 00:00:00 2001 From: psc Date: Thu, 11 Nov 2010 15:03:33 +0000 Subject: [PATCH] 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 --- trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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? */ -- 2.30.2