aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-11 15:35:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-11 15:35:17 +0100
commit52555f7ea9488a3f0030ec2cdfb08ec506348aa1 (patch)
tree4a0ec5f40f7de42176eb2baa95ec1b1d6a1aaa9d
parentbfa849687c7ab9e6f3198e0a1ff93625abfb2d80 (diff)
downloadrspamd-52555f7ea9488a3f0030ec2cdfb08ec506348aa1.tar.gz
rspamd-52555f7ea9488a3f0030ec2cdfb08ec506348aa1.zip
Fix URL detection in HTML parts.
Reported by: Andrew Lewis
-rw-r--r--src/libmime/message.c10
1 files 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,