Merge pull request #35 from MarkCDSys/master

Parse UTF-8 special-chars in Net::LDAP::Filter.construct()
master
Rory O'Connell 2012-08-28 15:52:52 -07:00
commit 8ddb2d7c84
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,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.