emikulic / darkhttpd

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

Don't include wwwroot in directory list when in wwwroot #44

Closed g-rden closed 8 months ago

g-rden commented 8 months ago

This will prevent ../ from showing up when already in wwwroot. The string comparison is not super great, because path includes a trailing / and wwwroot does not. I don't think this is buggy, but it's not great. Closes #33

emikulic commented 8 months ago

Nice, thanks!