MINOR: sample/acl: use is_idchar() to locate the fetch/conv name
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Feb 2020 17:27:10 +0000 (18:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Feb 2020 18:02:06 +0000 (19:02 +0100)
commited2c662b01c40e874870330d74b78adf725abbd2
tree43fa2f2b188d7540646949ace15dcc000f91fd13
parentd4ad66905188ade3fcf53c84c43abc64154b3f70
MINOR: sample/acl: use is_idchar() to locate the fetch/conv name

Instead of scanning a string looking for an end of line, ')' or ',',
let's only accept characters which are actually valid identifier
characters. This will let the parser know that in %[src], only "src"
is the sample fetch name, not "src]". This was done both for samples
and ACLs since they are the same here.
src/acl.c
src/sample.c