From 2559b1967cd68a8816784090b5fad36deabf9f4e Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 5 Feb 2024 07:49:30 +0200 Subject: [PATCH] dont allow skew with scale --- 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 2b8584409..88594ff2e 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(): + if 'transform' in value.lower() and 'scale' in value.lower() and ('rotate' in value.lower() or 'skew' in value.lower()): return False return True