From 1753b6e061e3008a854f6d5d5ff3cc1a07302cfe Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 23:14:07 -0400 Subject: mq_parse_query_string(): Replace "+" in query values with " " --- (limited to 'src/utils') diff --git a/src/utils/string.c b/src/utils/string.c index 6d1f705..e15d323 100644 --- a/src/utils/string.c +++ b/src/utils/string.c @@ -58,12 +58,14 @@ mq_parse_query_string(gchar *str) val = ++str; for (; *str && *str != '&'; ++str); if (!*str) { + g_strdelimit(val, "+", ' '); g_hash_table_insert(hash_table, g_uri_unescape_string(key, NULL), g_uri_unescape_string(val, NULL)); break; } *str = '\0'; + g_strdelimit(val, "+", ' '); g_hash_table_insert(hash_table, g_uri_unescape_string(key, NULL), g_uri_unescape_string(val, NULL)); -- cgit v0.9.1