dfs
This commit is contained in:
parent
d4224042f6
commit
21f4f6f8e7
3 changed files with 6 additions and 4 deletions
|
@ -780,6 +780,8 @@ def submit_post(v):
|
|||
body_md = CustomRenderer().render(mistletoe.Document(body))
|
||||
body_html = sanitize(body_md)
|
||||
|
||||
if len(body_html) > 20000: abort(400)
|
||||
|
||||
# Run safety filter
|
||||
bans = filter_comment_html(body_html)
|
||||
if bans:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue