File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,7 @@ def search(args = nil)
425425 # this breaks when calling to_ber. (Can't force binary data to UTF-8)
426426 # we have to disable paging (even though server supports it) to get around this...
427427
428+ controls_temp = args . fetch ( :controls , [ ] )
428429 controls = [ ]
429430 controls <<
430431 [
@@ -434,7 +435,12 @@ def search(args = nil)
434435 rfc2696_cookie . map ( &:to_ber ) . to_ber_sequence . to_s . to_ber ,
435436 ] . to_ber_sequence if paged
436437 controls << ber_sort if ber_sort
437- controls = controls . empty? ? nil : controls . to_ber_contextspecific ( 0 )
438+ if controls . empty?
439+ controls = nil
440+ else
441+ controls += controls_temp unless controls_temp . blank?
442+ controls = controls . to_ber_contextspecific ( 0 )
443+ end
438444
439445 write ( request , controls , message_id )
440446
You can’t perform that action at this time.
0 commit comments