mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
The /source route confined paths with `absPath.startsWith(process.cwd())`, a string-prefix check with no separator. An absolute request path to a sibling directory whose name extends the project dir name (projeto -> projeto-backup) shared the prefix and was served. Switch to the relative-path check already used by sessionFileMetadataFromPollReply: reject when the relative path is empty (the root dir itself, never a file this route serves), starts with `..`, or is absolute. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>