From d0c877bcd5626d49239a522b8d4a9b988fb5ab58 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Wed, 20 Jun 2007 12:31:37 +0000 Subject: [PATCH] Patch by Kouhei Sutou, enables support of \XX octal filter syntax --- lib/net/ldap/filter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 )