aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2026-04-05 18:02:45 +0200
committergrunfink <grunfink@noreply.codeberg.org>2026-04-05 18:02:45 +0200
commitcf8f02765a769c27b41efcf479544d41e019036e (patch)
tree37c655d56af25f37c5218f2185244acedb94c127 /html.c
parent42f4c101c13e42c90263c376ae839f8ad87baea4 (diff)
parent63903b9c46ad30e5007b689dc68867ae3aa13a5b (diff)
Merge pull request 'static files: allow files in a subdirectory' (#541) from lbr/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/541
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index a261ae4..122bfee 100644
--- a/html.c
+++ b/html.c
@@ -5073,7 +5073,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
}
else
if (xs_startswith(p_path, "s/")) { /** a static file **/
- xs *l = xs_split(p_path, "/");
+ xs *l = xs_split_n(p_path, "/", 1);
const char *id = xs_list_get(l, 1);
int sz;