From: Kurt Zeilenga Date: Mon, 21 Feb 2000 20:58:31 +0000 (+0000) Subject: Ignore space in filter: ( !(foo=bar)) X-Git-Tag: OPENLDAP_REL_ENG_1_2_10~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b3e9b678b10cb7cf41f22aa3081cc4914474e4c;p=thirdparty%2Fopenldap.git Ignore space in filter: ( !(foo=bar)) --- diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index 945c0f6232..c9ba1bf31a 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -348,6 +348,10 @@ put_filter( BerElement *ber, char *str ) case '(': str++; parens++; + + /* skip spaces */ + while ( isspace( *str ) ) str++; + switch ( *str ) { case '&': Debug( LDAP_DEBUG_TRACE, "put_filter: AND\n",