]> source.dussan.org Git - rspamd.git/commitdiff
Fix stupid bug in url parser.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 25 Feb 2011 17:26:22 +0000 (20:26 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Fri, 25 Feb 2011 17:26:22 +0000 (20:26 +0300)
src/html.c

index 60c6eabd0471e8c3158662221fae8dbb2d498002..772f7d33b1345a54898dbde65cd2884dfdee5ba9 100644 (file)
@@ -801,7 +801,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i
                        if (part->html_urls && g_tree_lookup (part->html_urls, url_text) == NULL) {
                                g_tree_insert (part->html_urls, url_text, url);
                        }
-                       if (g_tree_lookup (task->urls, url)) {
+                       if (g_tree_lookup (task->urls, url) == NULL) {
                                g_tree_insert (task->urls, url, url);
                        }
                }