caddy/modules
PerryLink 520cbbbcd6 map: keep ExpandString's semantics for every reference
A "${...}" was only protected from the placeholder replacer when the
current expression defined that group, so "${2}" and "${missing}" came
out as a literal "$" instead of the empty string, and unbraced "$2",
"$missing" and "$1x" stayed literal instead of expanding to the empty
string. All of those are syntactically valid references and
regexp.ExpandString has always resolved them to the empty string.

Decide the overlap of the two syntaxes by syntax alone, not by the
capture groups of one expression: a "${" whose contents can be a
reference name is a reference and its brace is escaped for the replacer;
any other "${" is a literal dollar followed by a Caddy placeholder, so
"${http.request.method}" still expands to "$GET". Everything else is
passed through untouched for ExpandString.

Adds regressions for $2, $missing, ${2}, ${missing} and $1x.
2026-11-01 17:46:11 +08:00
..
caddyevents events: tell CertMagic which events are worth emitting (#8010) 2026-10-03 01:03:20 +10:00
caddyfs events: Refactor; move Event into core, so core can emit events (#6930) 2025-03-29 08:15:43 -06:00
caddyhttp map: keep ExpandString's semantics for every reference 2026-11-01 17:46:11 +08:00
caddypki acmeserver: say when the CA database is locked by another process (#8007) 2026-09-11 14:49:31 +10:00
caddytls caddytls: keep ACME issuer network proxy after RebuildCertMagic (#8288) 2026-10-28 09:37:00 +00:00
filestorage caddyfile: Normalize & flatten all unmarshalers (#6037) 2024-01-23 19:36:59 -05:00
internal/network reverseproxy: deduplicate DNS SRV+A discovery into modules/internal/network (#7790) 2026-10-12 10:37:55 +00:00
logging logging: Parse request URIs in the query filter like the server does (#8255) 2026-10-19 07:43:29 +00:00
metrics metrics: scope metrics to active config, add optional per-host metrics (#6531) 2024-10-02 08:23:26 -06:00
standard filesystem: Globally declared filesystems, fs directive (#5833) 2024-01-13 20:12:43 +00:00