]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Treat urls in subject as displayed only
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Feb 2017 14:55:14 +0000 (14:55 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 15 Feb 2017 19:53:07 +0000 (19:53 +0000)
src/libserver/url.c

index 420c0f95951c4be57c34002ed2749c9319d12272..eb470c7dbe2840d29df98ceaa0940c833cacb514 100644 (file)
@@ -2499,6 +2499,9 @@ rspamd_url_task_callback (struct rspamd_url *url, gsize start_offset,
        struct rspamd_url *query_url;
        gint rc;
 
+       /* It is just a displayed URL, we should not check it for certain things */
+       url->flags |= RSPAMD_URL_FLAG_HTML_DISPLAYED;
+
        if (url->protocol == PROTOCOL_MAILTO) {
                if (url->userlen > 0) {
                        if (!g_hash_table_lookup (task->emails, url)) {