Code

Fixed problem with decoding.
[gosa.git] / include / functions.inc
index dab51ac86293bab88091b538684027e73d23b5a0..216d04149622acf0d9f3d91c8af0d0bda9908378 100644 (file)
@@ -2309,7 +2309,7 @@ function get_base_from_hook($dn, $attrib)
     $command= $config->current['BASE_HOOK'];
 
     if ($command != ""){
-      $command.= " '$dn' $attrib";
+      $command.= " '".LDAP::fix($dn)."' $attrib";
       if (check_command($command)){
         @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execute");
         exec($command, $output);