caddy/modules/caddyhttp/map
Matt Holt 5e52bbb136
map: Remove infinite recursion check (#5094)
It was not accurate. Placeholders could be used in outputs that are
defined in the same mapping as long as that placeholder does not do the
same.

A more general solution would be to detect it at run-time in the
replacer directly, but that's a bit tedious
and will require allocations I think.

A better implementation of this check could still be done, but I don't
know if it would always be accurate. Could be a "best-effort" thing?
But I've also never heard of an actual case where someone configured
infinite recursion...
2022-09-29 12:46:38 -06:00
..
caddyfile.go map: Coerce val to string, fix #4987 2022-09-01 21:15:44 -06:00
map.go map: Remove infinite recursion check (#5094) 2022-09-29 12:46:38 -06:00
map_test.go caddyhttp: replace placeholders in map defaults (#5081) 2022-09-28 13:38:20 -06:00