From: Adam Dickmeiss Date: Thu, 8 Oct 2009 10:28:54 +0000 (+0200) Subject: Fix filters parsing X-Git-Tag: v1.2.2~24 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=e28e9f9f724d4d79abb1cd7eeda3df5efda778bd;hp=48d7952ddf788cc08282ec3ef9d953a5a7269367;p=pazpar2-moved-to-github.git Fix filters parsing Fix the filter parsing so that equal name=value is working again. In parse_filter, the eq would be set to NULL after finding '='. --- diff --git a/src/logic.c b/src/logic.c index f9cd08f..26fe5e7 100644 --- a/src/logic.c +++ b/src/logic.c @@ -446,7 +446,7 @@ static struct database_criterion *parse_filter(NMEM m, const char *buf) char *eq; if ((eq = strchr(values[i], '='))) new->type = PAZPAR2_STRING_MATCH; - if ((eq = strchr(values[i], '~'))) + else if ((eq = strchr(values[i], '~'))) new->type = PAZPAR2_SUBSTRING_MATCH; if (!eq) {