From ff01c2640102d1dcb949fb4497fdcd6bfc1057e4 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Mon, 17 Apr 2006 00:33:55 +0000 Subject: [PATCH] Fixed bug: we were generating an application string rather than a context-specific one when constructing "present" filters. --- lib/net/ldapfilter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/ldapfilter.rb b/lib/net/ldapfilter.rb index 97c4e86..4ad9abf 100644 --- a/lib/net/ldapfilter.rb +++ b/lib/net/ldapfilter.rb @@ -117,7 +117,7 @@ class Filter case @op when :eq if @right == "*" # present - @left.to_ber_application_string 7 + @left.to_ber_contextspecific 7 elsif @right =~ /[\*]/ #substring ary = @right.split( /[\*]+/ ) final_star = @right =~ /[\*]$/