From 7b3e9b678b10cb7cf41f22aa3081cc4914474e4c Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 21 Feb 2000 20:58:31 +0000 Subject: [PATCH] Ignore space in filter: ( !(foo=bar)) --- libraries/libldap/search.c | 4 ++++ 1 file changed, 4 insertions(+) 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", -- 2.47.2