]> source.dussan.org Git - rspamd.git/commitdiff
Fix URL detection in HTML parts.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Aug 2014 14:35:17 +0000 (15:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Aug 2014 14:35:17 +0000 (15:35 +0100)
Reported by: Andrew Lewis

src/libmime/message.c

index e045e96506c231d6434d1289c96e5f1b65ae84eb..f2dac687ba8e47b02a261b1b0601a87dac476672 100644 (file)
@@ -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,