Permalink
Browse files

Added common UTF-8 special characters to filter-values

  • Loading branch information...
1 parent 51597ea commit b63e5c49303dbe7bde86401c834f4dc4f9050ea6 Markus Bucher committed Mar 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/net/ldap/filter.rb
View
@@ -733,7 +733,7 @@ def parse_filter_branch(scanner)
scanner.scan(/\s*/)
if op = scanner.scan(/<=|>=|!=|:=|=/)
scanner.scan(/\s*/)
- if value = scanner.scan(/(?:[-\w*.+@=,#\$%&!'\s]|\\[a-fA-F\d]{2})+/)
+ if value = scanner.scan(/(?:[-\w*.+@=,#\$%&!'\s\xC3\x80-\xCA\xAF]|\\[a-fA-F\d]{2})+/)
# 20100313 AZ: Assumes that "(uid=george*)" is the same as
# "(uid=george* )". The standard doesn't specify, but I can find
# no examples that suggest otherwise.

0 comments on commit b63e5c4

Please sign in to comment.