From 27016d60246d69c482a8f04135ee9c93a1593981 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 16 Dec 2011 13:39:29 +0100 Subject: [PATCH] pz:limitmap:x local:field feature The local filter may optionally be followed by field. --- src/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 7dc07d8..44d7f57 100644 --- a/src/client.c +++ b/src/client.c @@ -1067,10 +1067,14 @@ const char *client_get_facet_limit_local(struct client *cl, if (p && !strcmp(p + 1, name) && s->value && !strncmp(s->value, "local:", 6)) { + const char *cp = s->value + 6; + while (*cp == ' ') + cp++; + nmem_strsplit_escape2(nmem, "|", value, values, num, 1, '\\', 1); (*l)++; - return name; + return *cp ? cp : name; } } } -- 1.7.10.4