]> source.dussan.org Git - rspamd.git/commitdiff
Do not add invalid URLs from HTML tags.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 14:10:52 +0000 (15:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 13 May 2015 14:10:52 +0000 (15:10 +0100)
src/libserver/html.c

index 2470310b4089b4549808973538edc3efcd308f73..0f9702646f1b3cec55318bd698ba992abc799376 100644 (file)
@@ -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
                         */