From 1eab2924f604c61cad04fdbe3949b5ee03fb0330 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Thu, 31 Aug 2006 13:23:25 +0000 Subject: [PATCH] fixed line-folding bug in to_ldif --- lib/net/ldap/entry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/ldap/entry.rb b/lib/net/ldap/entry.rb index ce19cdd..09a6973 100644 --- a/lib/net/ldap/entry.rb +++ b/lib/net/ldap/entry.rb @@ -163,7 +163,7 @@ class LDAP unless k == :dn v.each {|v1| v2 = if (k == :userpassword) || is_attribute_value_binary?(v1) - ": #{Base64.encode64(v1).chomp}" + ": #{Base64.encode64(v1).chomp.gsub(/\n/m,"\n ")}" else " #{v1}" end