Skip to content

Skip wildcard routes that do not compile - #765

Merged
hansott merged 1 commit into
mainfrom
fix/invalid-wildcard-route
Oct 23, 2026
Merged

hansott merged 1 commit into
mainfrom
fix/invalid-wildcard-route

Conversation

@iacobdaniel

Copy link
Copy Markdown
Contributor

On every request, Zen compiles the wildcard routes of the endpoint rules for the request's method, before it compares the path. A route like "/api/[/" failed to compile, and that error turned off attack detection, rate limiting and IP blocking for every request with the rule's method, or for all requests when the method is "". Skipping such a route with a warning.

@hansott
hansott merged commit e068fe1 into main Oct 23, 2026
117 checks passed
@hansott
hansott deleted the fix/invalid-wildcard-route branch October 23, 2026 10:08
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.

2 participants