forked from MarseyWorld/MarseyWorld
fix this https://rdrama.net/post/208836/the-bird-of-the-day-is/5101413#context crashing phones
parent
f6eab8cd28
commit
8d539e6ff9
|
@ -688,6 +688,9 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
|
||||||
if sanitized.count("blur(") + sanitized.count("drop-shadow(") > 5:
|
if sanitized.count("blur(") + sanitized.count("drop-shadow(") > 5:
|
||||||
error("Too many filters!")
|
error("Too many filters!")
|
||||||
|
|
||||||
|
if sanitized.count("bounce") + sanitized.count("cide") > 5:
|
||||||
|
error("Too many 'bounce' and 'cide'!")
|
||||||
|
|
||||||
return sanitized.strip()
|
return sanitized.strip()
|
||||||
|
|
||||||
def allowed_attributes_emojis(tag, name, value):
|
def allowed_attributes_emojis(tag, name, value):
|
||||||
|
|
Loading…
Reference in New Issue