Zend\Ldap\Dn::escapeValue
Escapes a DN value according to RFC 2253
Escapes the given VALUES according to RFC 2253 so that they can be safely used in LDAP DNs. The characters ",", "+", """, "\", "<", ">", ";", "#", " = " with a special meaning in RFC 2252 are preceded by ba backslash. Control characters with an ASCII code < 32 are represented as \hexpair. Finally all leading and trailing spaces are converted to sequences of \20.
- Author: Benedikt Hallinger <beni@php.net>
Signature
public function escapeValue(array
$values )
Parameters
$values
— array- An array containing the DN values that should be escaped
Returns
- array
- The array $values, but escaped