From 52555f7ea9488a3f0030ec2cdfb08ec506348aa1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 11 Aug 2014 15:35:17 +0100 Subject: [PATCH] Fix URL detection in HTML parts. Reported by: Andrew Lewis --- src/libmime/message.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/libmime/message.c b/src/libmime/message.c index e045e9650..f2dac687b 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -935,17 +935,11 @@ process_text_part (struct rspamd_task *task, text_part->orig, NULL); - if (text_part->html_nodes == NULL) { - url_parse_text (task->task_pool, task, text_part, FALSE); - } - else { + if (text_part->html_nodes != NULL) { decode_entitles (text_part->content->data, &text_part->content->len); - url_parse_text (task->task_pool, task, text_part, FALSE); -#if 0 - url_parse_text (task->task_pool, task, text_part, TRUE); -#endif } + url_parse_text (task->task_pool, task, text_part, TRUE); fuzzy_init_part (text_part, task->task_pool, task->cfg->max_diff); rspamd_mempool_add_destructor (task->task_pool, -- 2.39.5