From: Pierangelo Masarati Date: Tue, 9 Mar 2004 20:43:27 +0000 (+0000) Subject: '=' must be escaped (and escapable by '\') according to RFC2253 and draft-ietf-ldapbi... X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~325 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14f2ebe1d3f02baf10554340058a48000a0ed728;p=openldap '=' must be escaped (and escapable by '\') according to RFC2253 and draft-ietf-ldapbis-dn-XX (ITS#3009; must have slipped thru some changes long time ago...) --- diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 40258b0722..e14342db77 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -471,7 +471,8 @@ ldap_dn_normalize( LDAP_CONST char *dnin, ( LDAP_DN_RDN_SEP(c) || LDAP_DN_AVA_SEP(c) ) #define LDAP_DN_NE(c) \ ( LDAP_DN_RDN_SEP_V2(c) || LDAP_DN_AVA_SEP(c) \ - || LDAP_DN_QUOTES(c) || (c) == '<' || (c) == '>' ) + || LDAP_DN_AVA_EQUALS(c) || LDAP_DN_QUOTES(c) \ + || (c) == '<' || (c) == '>' ) #define LDAP_DN_MAYESCAPE(c) \ ( LDAP_DN_ESCAPE(c) || LDAP_DN_NE(c) \ || LDAP_DN_ASCII_SPACE(c) || LDAP_DN_OCTOTHORPE(c) )