mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [paste_submit UI] filter empty file field
This commit is contained in:
parent
9cb6312279
commit
1929b2c6a7
1 changed files with 7 additions and 3 deletions
|
@ -294,6 +294,12 @@ def submit():
|
|||
ltagsgalaxies = request.form['tags_galaxies']
|
||||
paste_content = request.form['paste_content']
|
||||
|
||||
is_file = False
|
||||
file = request.files['file']
|
||||
if file:
|
||||
if file.filename:
|
||||
is_file = True
|
||||
|
||||
submitted_tag = 'infoleak:submission="manual"'
|
||||
|
||||
#active taxonomies
|
||||
|
@ -312,9 +318,7 @@ def submit():
|
|||
else:
|
||||
ltags = submitted_tag
|
||||
|
||||
if 'file' in request.files:
|
||||
|
||||
file = request.files['file']
|
||||
if is_file:
|
||||
if file:
|
||||
|
||||
if file and allowed_file(file.filename):
|
||||
|
|
Loading…
Reference in a new issue