diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-23 20:14:08 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-23 20:14:08 +0300 |
commit | 7c3c86ce3fad9d222561fddc3bb30e7f1aa66b32 (patch) | |
tree | 2c114a98f6f3a261a23b7f0e812eb9fe37c8b945 /src/html.c | |
parent | 143e584d81e18757922706ae67f9fd61e85a10d1 (diff) | |
download | rspamd-7c3c86ce3fad9d222561fddc3bb30e7f1aa66b32.tar.gz rspamd-7c3c86ce3fad9d222561fddc3bb30e7f1aa66b32.zip |
* Add ability to extract urls from subject field0.3.10
Fix phishing plugin.
* Important fix for multimap/cdb handling
* Important fix for phishing detector
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c index 31863ba9c..b18914e41 100644 --- a/src/html.c +++ b/src/html.c @@ -728,7 +728,13 @@ check_phishing (struct worker_task *task, struct uri *href_url, const gchar *url } } /* Compare parts and check for phished hostname */ - if (c != NULL && g_ascii_strncasecmp (p, c, len) != 0) { + if (c != NULL) { + if (g_ascii_strncasecmp (p, c, len) != 0) { + href_url->is_phished = TRUE; + href_url->phished_url = new; + } + } + else { href_url->is_phished = TRUE; href_url->phished_url = new; } |