fix: [paste_submit UI] filter empty file field

pull/422/head
Terrtia 2019-06-05 16:41:59 +02:00
parent 601ea8f13e
commit 0d3d4aae1d
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 5 additions and 4 deletions

View File

@ -295,6 +295,7 @@ def submit():
paste_content = request.form['paste_content'] paste_content = request.form['paste_content']
is_file = False is_file = False
if 'file' in request.files:
file = request.files['file'] file = request.files['file']
if file: if file:
if file.filename: if file.filename: