From cadc9b6bb63fbd225a0ec6a45b301a8598d17757 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 13 May 2015 15:10:52 +0100 Subject: [PATCH] Do not add invalid URLs from HTML tags. --- src/libserver/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/html.c b/src/libserver/html.c index 2470310b4..0f9702646 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -848,7 +848,7 @@ parse_tag_url (struct rspamd_task *task, url = rspamd_mempool_alloc (task->task_pool, sizeof (struct rspamd_url)); rc = rspamd_url_parse (url, url_text, len, task->task_pool); - if (rc != URI_ERRNO_EMPTY && url->hostlen != 0) { + if (rc == URI_ERRNO_OK && url->hostlen != 0) { /* * Check for phishing */ -- 2.39.5