From: Kurt Zeilenga Date: Mon, 21 Feb 2000 20:57:48 +0000 (+0000) Subject: Ignore space in filter: ( !(foo=bar)) X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3184 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=655c0bda41f4a7c3b73af308c80e28d154acaba0;p=openldap Ignore space in filter: ( !(foo=bar)) --- diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index 7aec3efcb8..6753a25df5 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -568,6 +568,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",