aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-09 12:07:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-09 12:07:46 +0100
commitf1a4121eca2230cfe364808a92e3b4d909a183b4 (patch)
treeb62761250815f2b5a6da588911327031d98d1445 /src/plugins
parent47e260127847f720b64535205251ea39f86ab514 (diff)
downloadrspamd-f1a4121eca2230cfe364808a92e3b4d909a183b4.tar.gz
rspamd-f1a4121eca2230cfe364808a92e3b4d909a183b4.zip
[Feature] Store url object in images
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/surbl.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 465edecf4..c27e5c858 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -1906,15 +1906,10 @@ surbl_test_url (struct rspamd_task *task, void *user_data)
img = g_ptr_array_index (part->html->images, j);
if ((img->flags & RSPAMD_HTML_FLAG_IMAGE_EXTERNAL)
- && img->src) {
- url = rspamd_html_process_url (task->task_pool,
- img->src, strlen (img->src), NULL);
-
- if (url) {
- surbl_tree_url_callback (url, url, param);
- msg_debug_surbl ("checked image url %s over %s",
- img->src, suffix->suffix);
- }
+ && img->url) {
+ surbl_tree_url_callback (img->url, img->url, param);
+ msg_debug_surbl ("checked image url %s over %s",
+ img->src, suffix->suffix);
}
}
}