]> git.ipfire.org Git - thirdparty/squid.git/commit
Detect HTTP header ACL issues
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 7 Jan 2017 11:01:20 +0000 (00:01 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 7 Jan 2017 11:01:20 +0000 (00:01 +1300)
commit3aa6d6b65227e9b6d18a1a913df2c0306965126e
tree67dbaf7c09ad3b9bcd8cdb95609128987b35279f
parent80f91c95ecd97a47aa049040f2f435564a4ea188
Detect HTTP header ACL issues

rep_header and req_header ACL types cannot match multiple different
headers in one test (unlike Squid-2 appears to have done). Produce
an ERROR and ignore the extra line(s) instead of silently changing
all the previous regex to match the second header name.

Also detect and ERROR when header name is missing entirely. Ignore
these lines instead of asserting.
src/acl/HttpHeaderData.cc