whereto/releasenotes/notes/group-subst-16dce373ccd24118.yaml
Zane Bitter 006ffc075c Detect group matches in replacements more robustly
The Python re module uses '\n' for group backreference substitution,
whereas mod_alias uses '$n', and thus we must translate between them
when processing RedirectMatch directives. Previously this was done by
substituting backslashes for any dollar signs in the replacement string.
However, group substitution only occurs when the $ is not escaped with a
backslash and is followed by a decimal digit. Follow the same rules
here.

Change-Id: Ib33534b40e0b126c769ec17f76e1ecc83d790ebc
2017-11-08 16:58:22 -05:00

4 lines
135 B
YAML

fixes:
- Literal '$' characters are now handled correctly when they appear in
substitution strings for RedirectMatch directives.