logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 0109724a5f16e58a78ab4c09c955c44982368c6f
parent 10e28f6c1df4432947fa5686c6cecde9ffe8582d
Author: Henry Jameson <me@hjkos.com>
Date:   Mon,  5 Jun 2023 21:57:36 +0300

case insensititvy

Diffstat:

Msrc/components/rich_content/rich_content.jsx4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx @@ -150,8 +150,8 @@ export default { if (Array.isArray(item)) { const [opener, children, closer] = item let Tag = getTagName(opener) - if (Tag === 'script') Tag = 'js-exploit' - if (Tag === 'style') Tag = 'css-exploit' + if (Tag.toLowerCase() === 'script') Tag = 'js-exploit' + if (Tag.toLowerCase() === 'style') Tag = 'css-exploit' const fullAttrs = getAttrs(opener, () => true) const attrs = getAttrs(opener) const previouslyMentions = currentMentions !== null