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

index 945c0f6232960caef2a30fca2038a06e635c95f9..c9ba1bf31a0bd5dcbf58f38648a8af322e731b3d 100644 (file)
@@ -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",