This commit is contained in:
Aevann1 2022-02-17 09:02:44 +02:00
parent c496fca8cc
commit 4ef444711a
4 changed files with 83 additions and 1 deletions

View file

@ -862,7 +862,7 @@ def submit_post(v, sub=None):
sub = request.values.get("sub")
if sub:
if sub and sub != 'none':
sub = g.db.query(Sub.name).filter_by(name=sub.strip().lower()).one_or_none()
if not sub: abort(404)
sub = sub[0]