mirror of https://github.com/CIRCL/AIL-framework
fix: [UI feeder] fix logger
parent
0daf5bad44
commit
ee828a04bc
|
@ -259,4 +259,4 @@ TEXT_MAX_SIZE = 1000000
|
||||||
FILE_MAX_SIZE = 1000000000
|
FILE_MAX_SIZE = 1000000000
|
||||||
# Managed file extenions for file submission, comma separated
|
# Managed file extenions for file submission, comma separated
|
||||||
# TODO add zip, gz and tar.gz
|
# TODO add zip, gz and tar.gz
|
||||||
FILE_ALLOWED_EXTENSIONS = txt,sh,pdf
|
FILE_ALLOWED_EXTENSIONS = txt,sh,pdf,html,json
|
||||||
|
|
|
@ -78,7 +78,6 @@ def allowed_file(filename):
|
||||||
else:
|
else:
|
||||||
file_ext = filename.rsplit('.', 1)[1].lower()
|
file_ext = filename.rsplit('.', 1)[1].lower()
|
||||||
logger.debug(file_ext)
|
logger.debug(file_ext)
|
||||||
logger.debug(Flask_config.SUBMIT_PASTE_FILE_ALLOWED_EXTENSIONS)
|
|
||||||
return file_ext in Flask_config.SUBMIT_PASTE_FILE_ALLOWED_EXTENSIONS
|
return file_ext in Flask_config.SUBMIT_PASTE_FILE_ALLOWED_EXTENSIONS
|
||||||
|
|
||||||
def clean_filename(filename, whitelist=valid_filename_chars, replace=' '):
|
def clean_filename(filename, whitelist=valid_filename_chars, replace=' '):
|
||||||
|
|
Loading…
Reference in New Issue