From: Vsevolod Stakhov Date: Tue, 11 Aug 2015 14:31:42 +0000 (+0100) Subject: Fix some more issues with files scanning. X-Git-Tag: 1.0.0~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=171877e32a92ed43dab709077315d6aeb1e9b630;p=thirdparty%2Frspamd.git Fix some more issues with files scanning. --- diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index ff28ba5f51..6b76a401fa 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -276,6 +276,8 @@ rspamd_protocol_handle_url (struct rspamd_task *task, task->msg.len = res->len; } + task->flags |= RSPAMD_TASK_FLAG_FILE; + g_hash_table_unref (query_args); } diff --git a/src/libutil/http.c b/src/libutil/http.c index 73954474c3..d15633f8ed 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -2393,7 +2393,7 @@ rspamd_http_message_parse_query (struct rspamd_http_message *msg) g_assert (key != NULL); if (p > c) { value = g_string_sized_new (p - c); - g_string_append_len (key, c, p - c); + g_string_append_len (value, c, p - c); value->len = rspamd_decode_url (value->str, value->str, value->len); }