Replaces str.startswith() with Path.is_relative_to() to prevent sibling-prefix paths (e.g. /wiki-shared/x.md when WIKI_PATH=/wiki) from bypassing the entry guard. Includes regression test with 3 scenarios proving the bug exists pre-patch and is fixed post-patch. Closes #26 Co-authored-by: aaronjmars <61592645+aaronjmars@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| _test_path_containment.py | ||
| file_ingestion.py | ||
| ingestion.py | ||
| reflection.py | ||