commit 4416e3a
default
·
2025-01-20 17:37:21 +0000 UTC
parent 9e283af
Fixed check for the basedir (contributed by an-im-dugud).
1 files changed,
+1,
-1
M
httpd.c
M
httpd.c
+1,
-1
1@@ -212,7 +212,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
2 int status = 0;
3
4 /* is it the server root? */
5- if (*q_path == '\0') {
6+ if (*q_path == '\0' || strcmp(q_path, "/") == 0) {
7 const xs_dict *q_vars = xs_dict_get(req, "q_vars");
8 const char *t = NULL;
9