simpler fix to the transform exploit

master
Aevann 2023-09-20 18:54:57 +03:00
parent c930c21004
commit 0b15290ccf
2 changed files with 4 additions and 2 deletions

View File

@ -7744,3 +7744,7 @@ body {
resize: none !important;
}
}
p { /* fix the transform:exploit */
overflow: hidden !important;
}

View File

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