From: hickert Date: Thu, 29 Jul 2010 13:54:54 +0000 (+0000) Subject: Updated object handling, special chars in obejct dns X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c58a9a1c696f3329a79141457d048ee09c8e858;p=gosa.git Updated object handling, special chars in obejct dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19269 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){