Function: eudc-ldap-escape-query-special-chars
eudc-ldap-escape-query-special-chars is a byte-compiled function
defined in eudcb-ldap.el.gz.
Signature
(eudc-ldap-escape-query-special-chars STRING)
Documentation
Value is STRING with characters forbidden in LDAP queries escaped.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eudcb-ldap.el.gz
(defun eudc-ldap-escape-query-special-chars (string)
"Value is STRING with characters forbidden in LDAP queries escaped."
;; Note that * should also be escaped but in most situations I suppose
;; the user doesn't want this
(eudc-replace-in-string
(eudc-replace-in-string
(eudc-replace-in-string
(eudc-replace-in-string
string
"\\\\" "\\5c")
"(" "\\28")
")" "\\29")
(char-to-string ?\0) "\\00"))