Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Patch by Kouhei Sutou, enables support of \XX octal filter syntax

  • Loading branch information...
commit d0c877bcd5626d49239a522b8d4a9b988fb5ab58 1 parent 3f7a4a2
blackhedd authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/net/ldap/filter.rb
View
3  lib/net/ldap/filter.rb
@@ -464,7 +464,8 @@ def parse_filter_branch scanner
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 )
Please sign in to comment.
Something went wrong with that request. Please try again.