]> git.sur5r.net Git - openldap/commitdiff
Ignore space in filter: ( !(foo=bar))
authorKurt Zeilenga <kurt@openldap.org>
Mon, 21 Feb 2000 20:57:48 +0000 (20:57 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 21 Feb 2000 20:57:48 +0000 (20:57 +0000)
libraries/libldap/search.c

index 7aec3efcb802793bd9275614fbeec9c50f84b851..6753a25df551a11116165f7202bb8e23b6109e4a 100644 (file)
@@ -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",