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> |
||
|---|---|---|
| .. | ||
| services | ||
| tasks | ||
| Dockerfile | ||
| main.py | ||
| requirements.txt | ||