summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2025-01-20 18:37:21 +0100
committerGravatar default2025-01-20 18:37:21 +0100
commit4416e3a28a32a848d99c0b9621256be18a60325c (patch)
treedbe9f9dabf1fa081e2e4a85725db71e89a54fd12 /httpd.c
parentMinor HTML tweak. (diff)
downloadsnac2-4416e3a28a32a848d99c0b9621256be18a60325c.tar.gz
snac2-4416e3a28a32a848d99c0b9621256be18a60325c.tar.xz
snac2-4416e3a28a32a848d99c0b9621256be18a60325c.zip
Fixed check for the basedir (contributed by an-im-dugud).
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index eb72c6f..c13402b 100644
--- a/httpd.c
+++ b/httpd.c
@@ -212,7 +212,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
212 int status = 0; 212 int status = 0;
213 213
214 /* is it the server root? */ 214 /* is it the server root? */
215 if (*q_path == '\0') { 215 if (*q_path == '\0' || strcmp(q_path, "/") == 0) {
216 const xs_dict *q_vars = xs_dict_get(req, "q_vars"); 216 const xs_dict *q_vars = xs_dict_get(req, "q_vars");
217 const char *t = NULL; 217 const char *t = NULL;
218 218