diff --git a/lib/net/ldap/filter.rb b/lib/net/ldap/filter.rb index fb24476..b323762 100644 --- a/lib/net/ldap/filter.rb +++ b/lib/net/ldap/filter.rb @@ -464,7 +464,8 @@ class FilterParser #:nodoc: if op = scanner.scan( /\=|\<\=|\<|\>\=|\>|\!\=/ ) scanner.scan(/\s*/) #if value = scanner.scan( /[\w\*\.]+/ ) (ORG) - if value = scanner.scan( /[\w\*\.\+\-@=#\$%&! ]+/ ) + #if value = scanner.scan( /[\w\*\.\+\-@=#\$%&! ]+/ ) (ff suggested by Kouhei Sutou + if value = scanner.scan( /(?:[\w\*\.\+\-@=#\$%&! ]|\\[a-fA-F\d]{2,2})+/ ) case op when "=" Filter.eq( token, value )