From: Vsevolod Stakhov Date: Tue, 6 Jul 2021 11:05:41 +0000 (+0100) Subject: [Minor] Fix images cid storing X-Git-Tag: 3.0~209 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7029771021fc8b3b9a456ca2aee92702cb1c18b3;p=rspamd.git [Minor] Fix images cid storing --- 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 {