forked from MarseyWorld/MarseyWorld
disallow scale and rotate being used concurrently
parent
80ce71b07b
commit
6e045483fa
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue