From 0094c9875ecb848ddfa691e52985ae734a16a08c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 9 Jun 2017 15:42:26 +0100 Subject: [PATCH] [Fix] Fix url counts for href urls --- src/libserver/html.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libserver/html.c b/src/libserver/html.c index 186376567..7d0a30390 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -2502,10 +2502,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, if (target_tbl != NULL) { turl = g_hash_table_lookup (target_tbl, url); - if (turl != NULL && turl->phished_url == NULL) { - g_hash_table_insert (target_tbl, url, url); - } - else if (turl == NULL) { + if (turl == NULL) { g_hash_table_insert (target_tbl, url, url); } else { -- 2.39.5