Code

Updated special char handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Sep 2010 09:32:23 +0000 (09:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Sep 2010 09:32:23 +0000 (09:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19783 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ldap.inc
gosa-core/include/functions.inc

index 937a33855b714ad8b40d0b7efeda429d68c731ce..ce237a6ac28a37cabbf6e06e5a75eadd28b077d1 100644 (file)
@@ -125,6 +125,7 @@ class LDAP
                 LDAP::$characterMapRegFrom = array();
                 LDAP::$characterMapRegTo = array();
                 foreach(LDAP::$characterMap as $from => $to){
+                    $from = LDAP::convert($from);
                     LDAP::$characterMapRegFrom[] = "/{$from}/";
                     LDAP::$characterMapRegTo[] = addslashes($to);
                 }
index 1b707a6ca01945ac443c5a79d38be109323ff592..6b1ad16a8a25dbde9561f6ce399a7f65531020a7 100644 (file)
@@ -3852,7 +3852,7 @@ function detectLdapSpecialCharHandling()
         // Create a mapping out of the results.
         $map = array();
         foreach($mapName as $key => $entry){
-            $map[LDAP::convert("{$entry}")] = $mapDN[$key];
+            $map[$entry] = $mapDN[$key];
         }
         return($map);
     }