diff options
| author | default <nobody@localhost> | 2025-01-20 18:37:21 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-20 18:37:21 +0100 |
| commit | 4416e3a28a32a848d99c0b9621256be18a60325c (patch) | |
| tree | dbe9f9dabf1fa081e2e4a85725db71e89a54fd12 | |
| parent | 9e283af12cf8a7e99c9ba13165135e3eff8aba01 (diff) | |
Fixed check for the basedir (contributed by an-im-dugud).
| -rw-r--r-- | httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -212,7 +212,7 @@ int server_get_handler(xs_dict *req, const char *q_path, int status = 0; /* is it the server root? */ - if (*q_path == '\0') { + if (*q_path == '\0' || strcmp(q_path, "/") == 0) { const xs_dict *q_vars = xs_dict_get(req, "q_vars"); const char *t = NULL; |