From d058886d6cefeb8d3602e50ef058e7d358cddefe Mon Sep 17 00:00:00 2001 From: marcsello Date: Sun, 29 Nov 2020 05:25:20 +0100 Subject: [PATCH] Fixed crash on missing title field --- src/views/uploadview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/uploadview.py b/src/views/uploadview.py index cf7faba..7d84fae 100644 --- a/src/views/uploadview.py +++ b/src/views/uploadview.py @@ -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=[])