Repository navigation
Fix path boundary validation in resolveWithin (fixes #22826) - #22827
arthurianresolve wants to merge 1 commit into
Conversation
|
Thanks for your pull request! While it doesn't meet all of our standard requirements, it appears to be a small, focused contribution and has been routed to the team for review. Note: We still encourage linking to an issue with the |
as issue was reported through GitHub CLI instead of the form, setting the label was not possible, as it requires repo admin rights |
There was a problem hiding this comment.
🟢 Approval recommended
The focused fix correctly addresses the boundary bug and includes appropriate regression coverage.
Pull request overview
Fixes resolveWithin path-boundary validation to reject prefix-colliding sibling paths.
Changes:
- Enforces separator-aware canonical path containment.
- Adds regression coverage for sibling-prefix collisions.
File summaries
| File | Description |
|---|---|
app/src/lib/path.ts |
Corrects canonical containment validation. |
app/test/unit/path-test.ts |
Tests rejection of prefix-colliding siblings. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Fixes #22826
Description
Testing
node script/test.mjs app/test/unit/path-test.ts— 7 tests passed.Screenshots
Not applicable; this change does not affect the UI.
Release notes
Notes: no-notes