File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ def search(args = nil)
425
425
# this breaks when calling to_ber. (Can't force binary data to UTF-8)
426
426
# we have to disable paging (even though server supports it) to get around this...
427
427
428
- controls_temp = args . fetch ( :controls , [ ] )
428
+ user_controls = args . fetch ( :controls , [ ] )
429
429
controls = [ ]
430
430
controls <<
431
431
[
@@ -435,10 +435,10 @@ def search(args = nil)
435
435
rfc2696_cookie . map ( &:to_ber ) . to_ber_sequence . to_s . to_ber ,
436
436
] . to_ber_sequence if paged
437
437
controls << ber_sort if ber_sort
438
- if controls . empty?
438
+ if controls . empty? && user_controls . empty?
439
439
controls = nil
440
440
else
441
- controls += controls_temp unless controls_temp . blank?
441
+ controls += user_controls
442
442
controls = controls . to_ber_contextspecific ( 0 )
443
443
end
444
444
You can’t perform that action at this time.
0 commit comments