From 599a954f2601d08402c269ff6435849b9e636330 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:58:34 -0700 Subject: Keep the query string parser beside its one caller --- source/html.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source/html.c') diff --git a/source/html.c b/source/html.c index 94758e5..bc7a722 100644 --- a/source/html.c +++ b/source/html.c @@ -518,20 +518,3 @@ void html_include(const char *filename) html_raw(buf, len); fclose(f); } - -void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value)) -{ - const char *p = txt; - - while (p && *p) { - char *name = url_decode_parameter_name(&p); - // A name ends at an equals sign or an ampersand, and only the - // first is followed by a value. - if (*name) { - char *value = p[-1] == '=' ? url_decode_parameter_value(&p) : xstrdup(""); - fn(name, value); - free(value); - } - free(name); - } -} -- cgit 2.11.1