changed Entry::to_ldif so it doesn't interpret blanks as binary characters.

This commit is contained in:
blackhedd 2007-03-17 02:35:41 +00:00
parent 79f3ec6e0d
commit 17dcc52e05

View file

@ -251,7 +251,7 @@ class LDAP
def is_attribute_value_binary? value
v = value.to_s
v.each_byte {|byt|
return true if (byt < 33) || (byt > 126)
return true if (byt < 32) || (byt > 126)
}
if v[0..0] == ':' or v[0..0] == '<'
return true