Code

Fix attribute && content string
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jun 2006 04:19:10 +0000 (04:19 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 22 Jun 2006 04:19:10 +0000 (04:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3860 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_ldap.inc

index 71fcbb756796bd1ab80b1b5a701ded6e565f4f6b..494b1da9bdad8f4f10098dd5d68d2a7479fee269 100644 (file)
@@ -939,8 +939,8 @@ class LDAP{
           if(ereg("::",$tmp2))
           {
             $encoded = split("::",$entry);
-            $attr  = $encoded[0];
-            $value = base64_decode($encoded[1]);
+            $attr  = trim($encoded[0]);
+            $value = base64_decode(trim($encoded[1]));
             /* Add linenumber */
             $data .= $current_line."#".base64_encode($attr.":".$value)."\n";
           }