Fixed crash on missing title field

This commit is contained in:
Pünkösd Marcell 2020-11-29 05:25:20 +01:00
parent 1e491ba8d3
commit d058886d6c

View File

@ -30,7 +30,7 @@ class UploadView(FlaskView):
@login_required
def post(self):
title = request.form.get('title')
title = request.form.get('title', '')
title = title[:Item.name.property.columns[0].type.length]
title = bleach.clean(title, tags=[])