diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-22 16:09:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-02-22 16:09:09 +0000 |
commit | 60173e2236cdd2f9c9ee6a8c777cd29e6b1639f5 (patch) | |
tree | 06f824f01ac04f7b03b7b6825304fdb54bccc794 /src/libmime | |
parent | 7a57f661f20d63c3aaa7261f13f652712aa46905 (diff) | |
download | rspamd-60173e2236cdd2f9c9ee6a8c777cd29e6b1639f5.tar.gz rspamd-60173e2236cdd2f9c9ee6a8c777cd29e6b1639f5.zip |
[Minor] Sort urls for mime parts
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 99b84e385..a4b357015 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -771,6 +771,8 @@ rspamd_message_process_html_text_part (struct rspamd_task *task, MESSAGE_FIELD (task, urls), text_part->mime_part->urls); + g_ptr_array_sort (text_part->mime_part->urls, rspamd_url_cmp_qsort); + if (text_part->utf_content->len == 0) { text_part->flags |= RSPAMD_MIME_TEXT_PART_FLAG_EMPTY; } |