From 6c58a9a1c696f3329a79141457d048ee09c8e858 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 13:54:54 +0000 Subject: [PATCH] Updated object handling, special chars in obejct dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19269 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/sudo/admin/sudo/tabs_sudo.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/sudo/admin/sudo/tabs_sudo.inc b/gosa-plugins/sudo/admin/sudo/tabs_sudo.inc index 34aa4cafc..a0b656c34 100644 --- a/gosa-plugins/sudo/admin/sudo/tabs_sudo.inc +++ b/gosa-plugins/sudo/admin/sudo/tabs_sudo.inc @@ -41,7 +41,9 @@ class sudotabs extends tabs /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ - $new_dn= 'cn='.$baseobject->get_cn().','.sudo::get_sudoers_ou($baseobject->config); + $cn = preg_replace('/,/', '\,', $baseobject->get_cn()); + $cn = preg_replace('/"/', '\"', $cn); + $new_dn= 'cn='.$cn.','.sudo::get_sudoers_ou($baseobject->config); /* Move group? */ if ($this->dn != $new_dn){ -- 2.30.2