Code

Fixed preplacements for ldap special chars.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Sep 2010 07:57:28 +0000 (07:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Sep 2010 07:57:28 +0000 (07:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19779 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ldap.inc

index 5c8bac1fb6b49a56af1c027932cf56f6ea8edc80..937a33855b714ad8b40d0b7efeda429d68c731ce 100644 (file)
@@ -126,7 +126,7 @@ class LDAP
                 LDAP::$characterMapRegTo = array();
                 foreach(LDAP::$characterMap as $from => $to){
                     LDAP::$characterMapRegFrom[] = "/{$from}/";
-                    LDAP::$characterMapRegTo[] = "/{$to}/";
+                    LDAP::$characterMapRegTo[] = addslashes($to);
                 }
             }else{
                 // To avoid querying a hundred times without any success, stop here.