1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00
serenity/Userland/Services/WebServer
Max Wipfli e4f3a5fe37 WebServer: Make ".." equal to "." in server root directory
In the web server root directory, ".." has to be handled specially,
since everything above it does not exist from the point of view of the
user. The most sensible thing to do is to make ".." equal to ".". This
is also what ls(1) does for "/" and what "http://localhost/../"
evaluates to.

This also fixes a bug where stat() would fail on the directory above the
root directory, since it hasn't been unveiled for the process.
2021-06-11 11:37:15 +02:00
..
Client.cpp WebServer: Make ".." equal to "." in server root directory 2021-06-11 11:37:15 +02:00
Client.h WebServer: Use east const style in Client.{cpp,h} 2021-06-11 11:37:15 +02:00
CMakeLists.txt Services: Move to Userland/Services/ 2021-01-12 12:23:01 +01:00
main.cpp WebServer: Exit when the given port is invalid 2021-05-30 14:11:53 +01:00