Permalink
Browse files

changed Entry::to_ldif so it doesn't interpret blanks as binary chara…

…cters.
  • Loading branch information...
1 parent 79f3ec6 commit 17dcc52e056f9d97e435da7a298fb873b9582b9a blackhedd committed Mar 17, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/net/ldap/entry.rb
View
@@ -251,7 +251,7 @@ def write
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

0 comments on commit 17dcc52

Please sign in to comment.