From 2008c091361cd6f9ab8844ddc58411672fc7b3c2 Mon Sep 17 00:00:00 2001 From: TLSM Date: Thu, 2 Jun 2022 06:14:20 -0400 Subject: [PATCH] Add 'filter' to allowed_styles. --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index fdc34ea2a1..3c22d943e3 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -38,7 +38,7 @@ allowed_tags = ('b','blockquote','br','code','del','em','h1','h2','h3','h4','h5' 'li','ol','p','pre','strong','sub','sup','table','tbody','th','thead','td','tr','ul', 'marquee','a','span','ruby','rp','rt','spoiler','img','lite-youtube','video','source','audio') -allowed_styles = ['color', 'background-color', 'font-weight', 'text-align',] +allowed_styles = ['color', 'background-color', 'font-weight', 'text-align', 'filter',] def allowed_attributes(tag, name, value):