Skip to content

Commit

Permalink
Patch by Kouhei Sutou, enables support of \XX octal filter syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
blackhedd committed Jun 20, 2007
1 parent 3f7a4a2 commit d0c877b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/net/ldap/filter.rb
Expand Up @@ -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 )
Expand Down

0 comments on commit d0c877b

Please sign in to comment.