forked from rDrama/rDrama
simpler fix to the transform exploit
parent
c930c21004
commit
0b15290ccf
|
@ -7744,3 +7744,7 @@ body {
|
||||||
resize: none !important;
|
resize: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p { /* fix the transform:exploit */
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
|
|
|
@ -58,8 +58,6 @@ allowed_styles = ['background-color', 'color', 'filter', 'font-weight', 'text-al
|
||||||
def allowed_attributes(tag, name, value):
|
def allowed_attributes(tag, name, value):
|
||||||
|
|
||||||
if name == 'style':
|
if name == 'style':
|
||||||
if 'transform' in value.lower() and 'scale' in value.lower():
|
|
||||||
return False
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if tag == 'marquee':
|
if tag == 'marquee':
|
||||||
|
|
Loading…
Reference in New Issue