]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix url counts for href urls
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Jun 2017 14:42:26 +0000 (15:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Jun 2017 14:42:26 +0000 (15:42 +0100)
src/libserver/html.c

index 186376567ea6235dd2e2c62d99641636533ff9f1..7d0a30390c48779a9bca25d196c2c278ccb76b89 100644 (file)
@@ -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 {