From 3b7569745e59648b86fcda2dccfe992be53e7d14 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 25 Mar 2023 20:18:12 +0200 Subject: [PATCH] fix minor chud evasion exploit --- files/routes/posts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index ed7e2936c..88ee77be6 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1034,8 +1034,9 @@ def edit_post(pid, v): p.body_html = body_html - if not complies_with_chud(p): - abort(403, f'You have to include "{v.agendaposter_phrase}" in your post!') + + if not complies_with_chud(p): + abort(403, f'You have to include "{v.agendaposter_phrase}" in your post!') if v.id == p.author_id: