summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-04 23:14:07 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-04 23:14:07 (EDT)
commit1753b6e061e3008a854f6d5d5ff3cc1a07302cfe (patch)
tree373bf62c348e1cb09e57f6deac8f4dddeff3afd3 /src/utils
parentfede25538616c5bc2a3b42ab2c6796a5ed4aa7a2 (diff)
downloadmarquee-1753b6e061e3008a854f6d5d5ff3cc1a07302cfe.zip
marquee-1753b6e061e3008a854f6d5d5ff3cc1a07302cfe.tar.gz
marquee-1753b6e061e3008a854f6d5d5ff3cc1a07302cfe.tar.bz2
mq_parse_query_string(): Replace "+" in query values with " "
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/string.c2
1 files changed, 2 insertions, 0 deletions
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));