mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-11-23 11:12:04 +00:00
The containment check used String.startsWith(rootDirStr) without a path separator boundary. A target whose canonical path is a sibling directory sharing the root's name prefix (e.g. root "docs" vs. "docs-old") would incorrectly pass the check. Require the separator so only paths actually inside the root are served.