Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

supported comma in filter strings, suggested by Kouhei.

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