From 7029771021fc8b3b9a456ca2aee92702cb1c18b3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 6 Jul 2021 12:05:41 +0100 Subject: [PATCH] [Minor] Fix images cid storing --- src/libserver/html/html.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 4c780686e..ebfebf325 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -832,6 +832,7 @@ html_process_img_tag(rspamd_mempool_t *pool, if (href_value.size() > sizeof("cid:") - 1 && memcmp(href_value.data(), "cid:", sizeof("cid:") - 1) == 0) { /* We have an embedded image */ + img->src += sizeof("cid:") - 1; img->flags |= RSPAMD_HTML_FLAG_IMAGE_EMBEDDED; } else { -- 2.39.5