From 655c0bda41f4a7c3b73af308c80e28d154acaba0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 21 Feb 2000 20:57:48 +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 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", -- 2.39.5