aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-11 15:31:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-08-11 15:31:42 +0100
commit171877e32a92ed43dab709077315d6aeb1e9b630 (patch)
tree30f0647b7b5d1011e7252819c6f29c1e2e7078f0
parent88c6307dcffe2b7329a58b7beff15f5063752a3c (diff)
downloadrspamd-171877e32a92ed43dab709077315d6aeb1e9b630.tar.gz
rspamd-171877e32a92ed43dab709077315d6aeb1e9b630.zip
Fix some more issues with files scanning.
-rw-r--r--src/libserver/protocol.c2
-rw-r--r--src/libutil/http.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index ff28ba5f5..6b76a401f 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 73954474c..d15633f8e 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);
}