mirror of https://github.com/CIRCL/AIL-framework
fix: [paste_submit UI] filter empty file field
parent
601ea8f13e
commit
0d3d4aae1d
|
@ -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"'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue