Accept filters with only one clause to an & or |
This commit is contained in:
parent
5bc73d3aa3
commit
f3204bde6d
3 changed files with 13 additions and 8 deletions
|
@ -716,7 +716,7 @@ class Net::LDAP::Filter
|
|||
filter = nil
|
||||
branches = parse_branches(scanner)
|
||||
|
||||
if branches.size >= 2
|
||||
if branches.size >= 1
|
||||
filter = branches.shift
|
||||
while not branches.empty?
|
||||
filter = filter.__send__(op, branches.shift)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue