forked from rDrama/rDrama
1
0
Fork 0
master
Aevann 2024-02-05 07:50:14 +02:00
parent 2a8a725e11
commit 6f63629477
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +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() or 'skew' in value.lower()):
value = value.lower()
if 'transform' in value and 'scale' in value and ('rotate' in value or 'skew' in value):
return False
return True