Diff options
Diffstat (limited to '')
-rw-r--r--source/html.c17
1 file changed, 0 insertions, 17 deletions
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);
- }
-}