fixed line-folding bug in to_ldif

This commit is contained in:
blackhedd 2006-08-31 13:23:25 +00:00
parent da6b81dd39
commit 1eab2924f6

View file

@ -163,7 +163,7 @@ class LDAP
unless k == :dn unless k == :dn
v.each {|v1| v.each {|v1|
v2 = if (k == :userpassword) || is_attribute_value_binary?(v1) v2 = if (k == :userpassword) || is_attribute_value_binary?(v1)
": #{Base64.encode64(v1).chomp}" ": #{Base64.encode64(v1).chomp.gsub(/\n/m,"\n ")}"
else else
" #{v1}" " #{v1}"
end end