nbluis/static-server

Prevent parent paths

Closed this issue · 0 comments

Prevent URI from going above the root path. Paths like /../, or /some/dir/../../../../index should be forbidden; basically, resolve the URI path and if a string /../ is found, reject it.