]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] acl: detect and report potential mistakes in ACLs
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Jul 2009 17:40:40 +0000 (19:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 26 Jul 2009 17:43:20 +0000 (19:43 +0200)
commit5e7d34606aa1076a37581f147960e1dd1e10fc52
tree59cbe997d7d7b4eaf54ab70b9556b41ba230af2c
parent90a6c0f1ac19cd6c1dd86380ca79336e9d10ab98
[MINOR] acl: detect and report potential mistakes in ACLs

I've discovered a configuration with lots of occurrences of the
following :

    acl xxx hdr_beg (host) xxx

The problem is that hdr_beg will match every header against patterns
(host) and xxx due to the space between both, which certainly is not
what the user wanted. Now we detect such ACLs and report a warning
with a suggestion to add "--" between "hdr_beg" and "(host)" if this
is definitely what is wanted.
(cherry picked from commit 404e8ab4615d564a74f92a0d3822b0292dd6224f)
src/acl.c