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,10 +295,11 @@ def submit():
paste_content = request.form['paste_content']
is_file = False
file = request.files['file']
if file:
if file.filename:
is_file = True
if 'file' in request.files:
file = request.files['file']
if file:
if file.filename:
is_file = True
submitted_tag = 'infoleak:submission="manual"'