From: Vsevolod Stakhov Date: Mon, 6 Aug 2012 13:57:40 +0000 (+0400) Subject: When inserting a url to the tree also check phishing status to avoid masking of phish... X-Git-Tag: 0.5.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aed8d7e461020747be68c0e0c699cee9ec206ef;p=thirdparty%2Frspamd.git When inserting a url to the tree also check phishing status to avoid masking of phished urls by innocent urls. --- diff --git a/src/util.c b/src/util.c index a6c56ea958..b721e838be 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;