Skip to content

Commit b63e5c4

Browse files
author
Markus Bucher
committed
Added common UTF-8 special characters to filter-values
1 parent 51597ea commit b63e5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap/filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ def parse_filter_branch(scanner)
733733
scanner.scan(/\s*/)
734734
if op = scanner.scan(/<=|>=|!=|:=|=/)
735735
scanner.scan(/\s*/)
736-
if value = scanner.scan(/(?:[-\w*.+@=,#\$%&!'\s]|\\[a-fA-F\d]{2})+/)
736+
if value = scanner.scan(/(?:[-\w*.+@=,#\$%&!'\s\xC3\x80-\xCA\xAF]|\\[a-fA-F\d]{2})+/)
737737
# 20100313 AZ: Assumes that "(uid=george*)" is the same as
738738
# "(uid=george* )". The standard doesn't specify, but I can find
739739
# no examples that suggest otherwise.

0 commit comments

Comments
 (0)