diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-18 15:57:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-18 15:57:19 +0100 |
commit | 2627f99408d47a8e7ffe96f8c6bec97c509f043d (patch) | |
tree | 2292c6c127d2c051aa147ef130f63d9dc6c88b31 | |
parent | abd952742b51f2b21931c8b08de5fe024f188f6b (diff) | |
download | rspamd-2627f99408d47a8e7ffe96f8c6bec97c509f043d.tar.gz rspamd-2627f99408d47a8e7ffe96f8c6bec97c509f043d.zip |
[Fix] Fix mixed case content type processing
-rw-r--r-- | src/libmime/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 56f0a0a98..9ce8950b7 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -824,8 +824,8 @@ rspamd_message_process_text_part_maybe (struct rspamd_task *task, xhtml_tok.begin = "xhtml"; xhtml_tok.len = 5; - if (rspamd_ftok_cmp (&mime_part->ct->subtype, &html_tok) == 0 || - rspamd_ftok_cmp (&mime_part->ct->subtype, &xhtml_tok) == 0) { + if (rspamd_ftok_casecmp (&mime_part->ct->subtype, &html_tok) == 0 || + rspamd_ftok_casecmp (&mime_part->ct->subtype, &xhtml_tok) == 0) { found_html = TRUE; } else { @@ -852,7 +852,7 @@ rspamd_message_process_text_part_maybe (struct rspamd_task *task, html_tok.begin = "plain"; html_tok.len = 5; - if (rspamd_ftok_cmp (&mime_part->ct->subtype, &html_tok) == 0) { + if (rspamd_ftok_casecmp (&mime_part->ct->subtype, &html_tok) == 0) { found_txt = TRUE; } else { |