From 2a8a725e1120cbb0f54e77ed4a5be909479e7909 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 5 Feb 2024 07:49:45 +0200 Subject: [PATCH] remove extra space --- 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 88594ff2e..f39360e7f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -39,7 +39,7 @@ allowed_styles = ['background-color', 'color', 'filter', 'font-weight', 'text-al def allowed_attributes(tag, name, value): if name == 'style': - if 'transform' in value.lower() and 'scale' in value.lower() and ('rotate' in value.lower() or 'skew' in value.lower()): + if 'transform' in value.lower() and 'scale' in value.lower() and ('rotate' in value.lower() or 'skew' in value.lower()): return False return True