aboutsummaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-08-21 17:12:02 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-08-21 17:12:02 +0400
commit233fba16ddb5346ade106b2a474cc4077b826082 (patch)
tree12ed2b517e7e29e795ade206f8d24de23dc2181d /src/html.c
parentdfa3d03dc066f3b4887de7bb0774950ab49597ae (diff)
downloadrspamd-233fba16ddb5346ade106b2a474cc4077b826082.tar.gz
rspamd-233fba16ddb5346ade106b2a474cc4077b826082.zip
Do not try to detect tld urls inside HTML texts as it generates too much false positive matches.
Add some prototypes for lua.
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c
index 41dd1df7d..51d7ccb16 100644
--- a/src/html.c
+++ b/src/html.c
@@ -711,7 +711,7 @@ check_phishing (struct worker_task *task, struct uri *href_url, const gchar *url
p ++;
}
- if (url_try_text (task->task_pool, url_text, len, NULL, NULL, &url_str) && url_str != NULL) {
+ if (url_try_text (task->task_pool, url_text, len, NULL, NULL, &url_str, TRUE) && url_str != NULL) {
new = memory_pool_alloc0 (task->task_pool, sizeof (struct uri));
if (new != NULL) {
g_strstrip (url_str);