From d5ccb5bfe1c6310915bcfc99398c263c9b62d112 Mon Sep 17 00:00:00 2001 From: Tuxedo Takodachi Date: Sat, 8 Apr 2023 20:59:01 +0200 Subject: [PATCH] Fix image embedding --- src/Linkification/Embedding.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Linkification/Embedding.js b/src/Linkification/Embedding.js index 6bdbd583f..04a28a511 100644 --- a/src/Linkification/Embedding.js +++ b/src/Linkification/Embedding.js @@ -1,7 +1,7 @@ import Get from '../General/Get'; import Header from '../General/Header'; import UI from '../General/UI'; -import { g, Conf, d, doc } from '../globals/globals'; +import { g, Conf, d, doc, E } from '../globals/globals'; import ImageHost from '../Images/ImageHost'; import Main from '../main/Main'; import $ from '../platform/$'; @@ -315,7 +315,8 @@ var Embedding = { regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp|webp)(?::\w+)?(?:[?#]|$)/i, style: '', el(a) { - return $.el('div', {innerHTML: ''}); + const hrefEsc = E(a.dataset.href); + return $.el('div', { innerHTML: ``}); } } , {