]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix images cid storing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Jul 2021 11:05:41 +0000 (12:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 6 Jul 2021 11:05:41 +0000 (12:05 +0100)
src/libserver/html/html.cxx

index 4c780686e26ad1263185ad3159a78a57b59e69cd..ebfebf325b94816561e33421b9d1cf5237d0edf9 100644 (file)
@@ -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 {