From: Vsevolod Stakhov Date: Mon, 11 Aug 2014 14:35:17 +0000 (+0100) Subject: Fix URL detection in HTML parts. X-Git-Tag: 0.7.0~184 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52555f7ea9488a3f0030ec2cdfb08ec506348aa1;p=rspamd.git Fix URL detection in HTML parts. Reported by: Andrew Lewis --- 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,