mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [paste_submit UI] filter empty file field
This commit is contained in:
parent
601ea8f13e
commit
0d3d4aae1d
1 changed files with 5 additions and 4 deletions
|
@ -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"'
|
||||
|
||||
|
|
Loading…
Reference in a new issue