From: Vsevolod Stakhov Date: Fri, 9 Jun 2017 14:42:26 +0000 (+0100) Subject: [Fix] Fix url counts for href urls X-Git-Tag: 1.6.0~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0094c9875ecb848ddfa691e52985ae734a16a08c;p=rspamd.git [Fix] Fix url counts for href urls --- 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 {