Add correct filter characters.
This commit is contained in:
parent
ab196040b4
commit
0b0688d434
1 changed files with 5 additions and 6 deletions
|
@ -249,12 +249,11 @@ class Net::LDAP::Filter
|
||||||
# string using a single backslash ('\') as escape.
|
# string using a single backslash ('\') as escape.
|
||||||
#
|
#
|
||||||
ESCAPES = {
|
ESCAPES = {
|
||||||
'!' => '21', # EXCLAMATION = %x21 ; exclamation mark ("!")
|
"\0" => '00', # NUL = %x00 ; null character
|
||||||
'&' => '26', # AMPERSAND = %x26 ; ampersand (or AND symbol) ("&")
|
'*' => '2A', # ASTERISK = %x2A ; asterisk ("*")
|
||||||
'*' => '2A', # ASTERISK = %x2A ; asterisk ("*")
|
'(' => '28', # LPARENS = %x28 ; left parenthesis ("(")
|
||||||
':' => '3A', # COLON = %x3A ; colon (":")
|
')' => '29', # RPARENS = %x29 ; right parenthesis (")")
|
||||||
'|' => '7C', # VERTBAR = %x7C ; vertical bar (or pipe) ("|")
|
'\\' => '5C', # ESC = %x5C ; esc (or backslash) ("\")
|
||||||
'~' => '7E', # TILDE = %x7E ; tilde ("~")
|
|
||||||
}
|
}
|
||||||
# Compiled character class regexp using the keys from the above hash.
|
# Compiled character class regexp using the keys from the above hash.
|
||||||
ESCAPE_RE = Regexp.new(
|
ESCAPE_RE = Regexp.new(
|
||||||
|
|
Loading…
Add table
Reference in a new issue