Skip to content

Commit 17dcc52

Browse files
author
blackhedd
committed
changed Entry::to_ldif so it doesn't interpret blanks as binary characters.
1 parent 79f3ec6 commit 17dcc52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap/entry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def write
251251
def is_attribute_value_binary? value
252252
v = value.to_s
253253
v.each_byte {|byt|
254-
return true if (byt < 33) || (byt > 126)
254+
return true if (byt < 32) || (byt > 126)
255255
}
256256
if v[0..0] == ':' or v[0..0] == '<'
257257
return true

0 commit comments

Comments
 (0)