]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Backport fix for urls parsing in HTML parts.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Aug 2014 14:37:12 +0000 (15:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Aug 2014 14:37:12 +0000 (15:37 +0100)
src/message.c

index 907893d91d0e20ff20ad6517f2332e33caea1273..0105701d6c4c1992eae1cbeb267a672d4e7e485f 100644 (file)
@@ -863,16 +863,10 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont
 
                text_part->content = strip_html_tags (task, task->task_pool, text_part, 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);
                memory_pool_add_destructor (task->task_pool, (pool_destruct_func) free_byte_array_callback, text_part->content);