From: Vsevolod Stakhov Date: Wed, 7 Oct 2015 16:16:53 +0000 (+0100) Subject: Fix parsing of query arguments. X-Git-Tag: 1.0.5~66^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1010a85f1c0866910b6d1d3645c345ba58b6dab;p=rspamd.git Fix parsing of query arguments. --- 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,