mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(start-plugin-core): a custom server function id must be one URL path segment
The client puts a server function's id after the server function base unencoded and the server reads the path segment back, so an id from a custom `generateFunctionId` with `/`, `#`, `?`, whitespace, a control or non-ASCII character silently called another function of the file or none. The build now fails for an id outside RFC 3986's unreserved characters and `$` (or `.`/`..`), naming the file, the function and the id; the docs say what an id may contain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ad5ee67c44
commit
35aedf618c
11 changed files with 249 additions and 25 deletions
Loading…
Add table
Add a link
Reference in a new issue