This commit is contained in:
Aevann1 2022-04-04 22:53:37 +02:00
parent e928afef9b
commit 637ab5b27c
13 changed files with 24 additions and 20 deletions

View file

@ -800,11 +800,11 @@ def edit_comment(cid, v):
body_html = sanitize(body, edit=True)
if v.marseyawarded and marseyaward_body_regex.search(body_html):
return {"error":"You can only type marseys!"}, 403
if len(body_html) > 20000: abort(400)
if v.marseyawarded and marseyaward_body_regex.search(body_html):
return {"error":"You can only type marseys!"}, 403
c.body = body[:10000]
c.body_html = body_html