Closed
Description
When using macro expansion with @rx operator, escaping is incorrectly applied.
Example:
SecRule ARGS "@rx localhost|%{TX.OtherHosts}"
will lead to something like SecRule ARGS "@rx localhost\|myhost1\|myhost2"
This screws up all regexes, as regex special characters will be escaped, even outside the macro-expanded varaiables.
In case I want to test against %{TX.MyHost} that isn't a regex, I can use the @contain operator.