xvc
This commit is contained in:
parent
c496fca8cc
commit
4ef444711a
4 changed files with 83 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue