Implement url en/decoding

This commit is contained in:
2026-06-17 17:34:07 +02:00
parent 1be63ce749
commit f0267d7a5c
3 changed files with 103 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
static enum MHD_Result handle_get(struct MHD_Connection *connection, SV url, Settings settings, SV username) {
noh_arena_save(&temp);
Noh_String fs_path = build_path(false, false, &settings.base_path, &username, &url);
noh_string_replace(&fs_path, '+', ' ');
url_decode(&fs_path);
noh_log(NOH_INFO, "Physical path: "Nsv_Fmt, Nsv_Arg(fs_path));