Skip to content

refactor(caddy): detect named routes with Helper.IsNamedRoute() - #2815

Open
dunglas wants to merge 1 commit into
mainfrom
refactor/caddy-is-named-route
Open

dunglas wants to merge 1 commit into
mainfrom
refactor/caddy-is-named-route

Conversation

@dunglas

@dunglas dunglas commented Nov 5, 2026

Copy link
Copy Markdown
Member

Caddy 2.11.9 added httpcaddyfile.Helper.IsNamedRoute() (caddyserver/caddy#8354). php_server now uses it to number the servers of named routes apart from site blocks, instead of inferring it from the named_routes option, which relied on the order Caddy adapts blocks in.

Follow-up to GHSA-g7pw-whv8-97j7.

Caddy 2.11.9 tells a directive whether it's parsed inside a named route
(caddyserver/caddy#8354). Use it instead of inferring it from the
named_routes option, which relied on the order Caddy adapts blocks in.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant