supported comma in filter strings, suggested by Kouhei.

This commit is contained in:
blackhedd 2007-08-26 09:28:37 +00:00
parent c6307d2ce4
commit 6e53144090
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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 )