disallow scale and rotate being used concurrently

pull/221/head
Aevann 2024-01-26 00:44:35 +02:00
parent 80ce71b07b
commit 6e045483fa
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ 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():
return False
return True
if tag == 'marquee':