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'] paste_content = request.form['paste_content']
is_file = False is_file = False
file = request.files['file'] if 'file' in request.files:
if file: file = request.files['file']
if file.filename: if file:
is_file = True if file.filename:
is_file = True
submitted_tag = 'infoleak:submission="manual"' submitted_tag = 'infoleak:submission="manual"'