From 2aed8d7e461020747be68c0e0c699cee9ec206ef Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 6 Aug 2012 17:57:40 +0400 Subject: [PATCH] When inserting a url to the tree also check phishing status to avoid masking of phished urls by innocent urls. --- src/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.c b/src/util.c index a6c56ea95..b721e838b 100644 --- a/src/util.c +++ b/src/util.c @@ -1203,6 +1203,10 @@ compare_url_func (gconstpointer a, gconstpointer b) } else { r = g_ascii_strncasecmp (u1->host, u2->host, u1->hostlen); + if (r == 0 && u1->is_phished != u2->is_phished) { + /* Always insert phished urls to the tree */ + return -1; + } } return r; -- 2.39.5