forked from MarseyWorld/MarseyWorld
gfgf
parent
b8ecadac49
commit
a714605b8e
|
@ -97,7 +97,10 @@ def settings_profile_post(v):
|
|||
bio = bio.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n").replace("\n\n\n", "\n\n")
|
||||
with CustomRenderer() as renderer: bio_html = renderer.render(mistletoe.Document(bio))
|
||||
bio_html = sanitize(bio_html)
|
||||
|
||||
if len(bio_html) > 10000:
|
||||
return render_template("settings_profile.html",
|
||||
v=v,
|
||||
error="Your bio is too long")
|
||||
# Run safety filter
|
||||
bans = filter_comment_html(bio_html)
|
||||
|
||||
|
|
Loading…
Reference in New Issue