From b63e5c49303dbe7bde86401c834f4dc4f9050ea6 Mon Sep 17 00:00:00 2001 From: Markus Bucher Date: Tue, 20 Mar 2012 17:41:00 +0100 Subject: [PATCH] Added common UTF-8 special characters to filter-values --- lib/net/ldap/filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/ldap/filter.rb b/lib/net/ldap/filter.rb index 660684f..96e7cb1 100644 --- a/lib/net/ldap/filter.rb +++ b/lib/net/ldap/filter.rb @@ -733,7 +733,7 @@ class Net::LDAP::Filter 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.