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

@@ -49,7 +49,7 @@ static Noh_String create_feed_response(Library_Entry self_path, SV url, Library_
static enum MHD_Result handle_opds(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_String fs_path_cstr = fs_path;
noh_string_append_null(&fs_path_cstr);