aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util.c4
1 files changed, 4 insertions, 0 deletions
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;