emikulic / darkhttpd

When you need a web server in a hurry.
https://unix4lyfe.org/darkhttpd/
ISC License
1.03k stars 83 forks source link

Correct path check for ".." #68

Closed g-rden closed 4 months ago

g-rden commented 4 months ago

Previously directory listing printed ".." when in wwwroot if wwwroot is not set to ".". So ./darkhttpd /dir would have printed the "..".

Same solution like in #44

Sorry for the oversight

hhartzer commented 4 months ago

No problem! Looks good to me.