From ec1a0e3f9b22db0f03fb22e43f374f2cdffce438 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 13 Oct 2009 11:19:15 +0200 Subject: [PATCH] Operator for pz:recordfilter is ~ (tilde). The operator used to be = (equals), but since pz:recordfilter only does substring match it seems more natural to harmonize with the filter semantics (which has ~ for substring, = for string match). --- src/logic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic.c b/src/logic.c index cc09dd1..9e24e8a 100644 --- a/src/logic.c +++ b/src/logic.c @@ -1023,7 +1023,7 @@ static int check_record_filter(xmlNode *root, struct session_database *sdb) if (type) { size_t len; - const char *eq = strchr(s, '='); + const char *eq = strchr(s, '~'); if (eq) len = eq - s; else -- 1.7.10.4