From 03b2b750cb28f4853f00ee7b4079b27468315308 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Feb 2024 00:52:48 +0200 Subject: [PATCH] move 'source' to allowed_tags_runtime --- files/helpers/bleach_body.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/bleach_body.py b/files/helpers/bleach_body.py index 714e73fda..7f37f2e25 100644 --- a/files/helpers/bleach_body.py +++ b/files/helpers/bleach_body.py @@ -6,8 +6,8 @@ from functools import partial from files.helpers.regex import sanitize_url_regex from files.helpers.config.const import * -allowed_tags = ('a','audio','b','big','blink','blockquote','br','center','code','del','details','em','g','gl','h1','h2','h3','h4','h5','h6','hr','i','img','li','lite-youtube','marquee','ol','p','pre','rp','rt','ruby','small','source','span','spoiler','strike','strong','sub','summary','sup','table','tbody','td','th','thead','tr','u','ul','video') -allowed_tags_runtime = ('div', 'input', 'label', 'score', 'button', 'd') +allowed_tags = ('a','audio','b','big','blink','blockquote','br','center','code','del','details','em','g','gl','h1','h2','h3','h4','h5','h6','hr','i','img','li','lite-youtube','marquee','ol','p','pre','rp','rt','ruby','small','span','spoiler','strike','strong','sub','summary','sup','table','tbody','td','th','thead','tr','u','ul','video') +allowed_tags_runtime = ('div', 'input', 'label', 'score', 'source', 'button', 'd') allowed_css_properties = ('background-color', 'color', 'filter', 'font-weight', 'text-align', 'transform') def allowed_attributes(tag, name, value):