From b1010a85f1c0866910b6d1d3645c345ba58b6dab Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 7 Oct 2015 17:16:53 +0100 Subject: [PATCH] Fix parsing of query arguments. --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index eedc9c451..6c9617ae5 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -2465,7 +2465,7 @@ rspamd_http_message_parse_query (struct rspamd_http_message *msg) if ((*p == '&' || p == end) && p >= c) { g_assert (key != NULL); if (p > c) { - value = rspamd_fstring_new_init ("", 0); + value = rspamd_fstring_new_init (c, p - c); value_tok = g_slice_alloc (sizeof (*value_tok)); value_tok->begin = value->str; value_tok->len = rspamd_decode_url (value->str, -- 2.39.5