This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * function ldap_escape | |
| * @source http://stackoverflow.com/questions/8560874/php-ldap-add-function-to-escape-ldap-special-characters-in-dn-syntax#answer-8561604 | |
| * @author Chris Wright | |
| * @version 2.0 | |
| * @param string $subject The subject string | |
| * @param bool $dn Treat subject as a DN if TRUE | |
| * @param string|array $ignore Set of characters to leave untouched | |
| * @return string The escaped string | |
| */ |