From f1a4121eca2230cfe364808a92e3b4d909a183b4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 9 Oct 2018 12:07:28 +0100 Subject: [Feature] Store url object in images --- src/plugins/surbl.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/plugins') 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); } } } -- cgit v1.2.3