17 lines
565 B
Markdown
17 lines
565 B
Markdown
# Bug Report: fix-can-edit-path-prefix
|
|||
|
|
|
||
|
|
## Summary
|
||
|
|
The fix correctly prevents sibling-directory bypass at all 5 locations in status.py.
|
||
|
|
|
||
|
|
## Bugs Found
|
||
|
|
No bugs found.
|
||
|
|
|
||
|
|
## Verification
|
||
|
|
- `str(file_path).startswith(proj_str + os.sep) or str(file_path) == proj_str` correctly handles both files inside the directory and the directory itself.
|
||
|
|
- All 5 locations use the same consistent pattern.
|
||
|
|
- `Path.resolve()` is called on `file_path`, so symlinks are resolved before comparison.
|
||
|
|
- 3 tests pass: sibling-rejection, subdirectory-acceptance, can-edit-task.
|
||
|
|
|
||
|
|
## Score
|
||
|
|
0
|