diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-06 17:57:40 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-08-06 17:57:40 +0400 |
commit | 2aed8d7e461020747be68c0e0c699cee9ec206ef (patch) | |
tree | 771f371abcf3c6b803afa4d61ae6d1687b8f629f /src/util.c | |
parent | 0df01e6d79c94712a1994df14fa9943eaf3d15e4 (diff) | |
download | rspamd-2aed8d7e461020747be68c0e0c699cee9ec206ef.tar.gz rspamd-2aed8d7e461020747be68c0e0c699cee9ec206ef.zip |
When inserting a url to the tree also check phishing status to avoid masking of phished urls by innocent urls.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
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; |