This commit is contained in:
Aevann1 2021-10-27 22:59:58 +02:00
parent 4a2c67ab2d
commit 377ce6b23a
3 changed files with 6 additions and 18 deletions

View file

@ -191,7 +191,7 @@ def api_comment(v):
body_md = CustomRenderer().render(mistletoe.Document(body_md))
body_html = sanitize(body_md)
if v.marseyawarded and len(list(re.finditer('>[^<]|[^>]<', body_html))) > 0: return {"error":"You can only type marseys!"}, 403
if v.marseyawarded and len(list(re.finditer('>[^<\s+]|[^>\s+]<', body_html))) > 0: return {"error":"You can only type marseys!"}, 403
bans = filter_comment_html(body_html)
@ -618,7 +618,7 @@ def edit_comment(cid, v):
body_md = CustomRenderer().render(mistletoe.Document(body))
body_html = sanitize(body_md)
if v.marseyawarded and len(list(re.finditer('>[^<]|[^>]<', body_html))) > 0: return {"error":"You can only type marseys!"}, 403
if v.marseyawarded and len(list(re.finditer('>[^<\s+]|[^>\s+]<', body_html))) > 0: return {"error":"You can only type marseys!"}, 403
bans = filter_comment_html(body_html)