100000000k

This commit is contained in:
Aevann1 2022-01-19 08:20:05 +02:00
parent fc832182a2
commit 35d071590c
15 changed files with 126 additions and 76 deletions

View file

@ -581,7 +581,7 @@ def edit_comment(cid, v):
)
g.db.add(c_option)
body_html = sanitize(body)
body_html = sanitize(body, edit=True)
if v.marseyawarded and len(list(re.finditer('>[^<\s+]|[^>\s+]<', body_html))): return {"error":"You can only type marseys!"}, 403
@ -656,7 +656,7 @@ def edit_comment(cid, v):
body += f"\n\n{url}"
else: return {"error": "Image/Video files only"}, 400
body_html = sanitize(body)
body_html = sanitize(body, edit=True)
if len(body_html) > 20000: abort(400)