From 6e53144090560be9b1241e97e2cbec70d37013b1 Mon Sep 17 00:00:00 2001 From: blackhedd Date: Sun, 26 Aug 2007 09:28:37 +0000 Subject: [PATCH] supported comma in filter strings, suggested by Kouhei. --- ChangeLog | 1 + lib/net/ldap/filter.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0afbc85..2f93685 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,7 @@ * Patched filter syntax to support octal \XX codes. Thanks to Kouhei Sutou for the patch. * Applied an additional patch from Kouhei. +* Allowed comma in filter strings, suggested by Kouhei. == Net::LDAP 0.0.4: August 15, 2006 * Undeprecated Net::LDAP#modify. Thanks to Justin Forder for diff --git a/lib/net/ldap/filter.rb b/lib/net/ldap/filter.rb index fc4b090..a3f5899 100644 --- a/lib/net/ldap/filter.rb +++ b/lib/net/ldap/filter.rb @@ -471,7 +471,7 @@ class FilterParser #:nodoc: scanner.scan(/\s*/) #if value = scanner.scan( /[\w\*\.]+/ ) (ORG) #if value = scanner.scan( /[\w\*\.\+\-@=#\$%&! ]+/ ) (ff suggested by Kouhei Sutou - if value = scanner.scan( /(?:[\w\*\.\+\-@=#\$%&! ]|\\[a-fA-F\d]{2,2})+/ ) + if value = scanner.scan( /(?:[\w\*\.\+\-@=,#\$%&! ]|\\[a-fA-F\d]{2,2})+/ ) case op when "=" Filter.eq( token, value )