commit 7029771: [Minor] Fix images cid storing

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jul 6 11:07:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-06 12:05:41 +0100
URL: https://github.com/rspamd/rspamd/commit/7029771021fc8b3b9a456ca2aee92702cb1c18b3 (HEAD -> master)

[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 {


More information about the Commits mailing list