Code

Added debug info
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Sep 2010 06:41:56 +0000 (06:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Sep 2010 06:41:56 +0000 (06:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19774 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ldap.inc

index f2d786729c9e713cfaf2b5f421550c5259253c60..dcd047d6f0dca57d31ce5a18c4a440efeacc64b8 100644 (file)
@@ -122,12 +122,17 @@ class LDAP
 
           // Check if character-detection was successfull, if it wasn't use a fallback.
           if(LDAP::$characterMap){
+              LDAP::$characterMapRegFrom = array();
+              LDAP::$characterMapRegTo = array();
               foreach(LDAP::$characterMap as $from => $to){
                   LDAP::$characterMapRegFrom[] = "/{$from}/";
                   LDAP::$characterMapRegTo[] = "/{$to}/";
               }
           }
       }
+                
+      $attrs = array(implode(LDAP::$characterMapRegFrom,', '),implode(LDAP::$characterMapRegTo,', '));
+      @DEBUG(DEBUG_LDAP,__LINE__,__FUNCTION__,__FILE__,$attrs,"Detected special-char handling for LDAP actions");
   }