From aa53296d07f466cf48e97d6313ae0c75a59196c7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 1 Jul 2022 00:18:05 +0200 Subject: [PATCH] Revert "remove "filter" from allowed styles" This reverts commit 14d929623e5729bf5490d9a91bf11b2466b9a3bd. --- 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 a8e9cd0c7..cd81c9652 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -40,7 +40,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','g') -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):