mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-11 19:37:55 +00:00
When an escape sequence was followed by a wildcard in the pattern, the path cursor had already skipped to the last hex digit, so an encoded slash could be swallowed into the wildcard span. Advance the cursor by the escape width only when the character is consumed. Addresses scan report 0e63a0fe7fea5ef7. Code written by GitHub Copilot (GPT-6.1 Sol, Claude Opus 5.5); reviewed by mholt. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>