]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: regex: remove outdated support for regex actions
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2020 15:17:13 +0000 (17:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2020 15:17:13 +0000 (17:17 +0200)
commit39bd740d005fbe03a29a56851576b5e16a9b62f9
treef9eb5cffbb0ff2bee914fba3f5ae6c18b20a44b3
parent530ba38a706ed640e43eb44abe5578c7a5826d5d
CLEANUP: regex: remove outdated support for regex actions

The support for reqrep and friends was removed in 2.1 but the
chain_regex() function and the "action" field in the regex struct
was still there. This patch removes them.

One point worth mentioning though. There is a check_replace_string()
function whose purpose was to validate the replacement strings passed
to reqrep. It should also be used for other replacement regex, but is
never called. Callers of exp_replace() should be checked and a call to
this function should be added to detect the error early.
include/common/regex.h
src/regex.c