fix: [UI feeder] fix logger

pull/594/head
Terrtia 2023-05-10 09:38:16 +02:00
parent 0daf5bad44
commit ee828a04bc
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
2 changed files with 1 additions and 2 deletions

View File

@ -259,4 +259,4 @@ TEXT_MAX_SIZE = 1000000
FILE_MAX_SIZE = 1000000000
# Managed file extenions for file submission, comma separated
# TODO add zip, gz and tar.gz
FILE_ALLOWED_EXTENSIONS = txt,sh,pdf
FILE_ALLOWED_EXTENSIONS = txt,sh,pdf,html,json

View File

@ -78,7 +78,6 @@ def allowed_file(filename):
else:
file_ext = filename.rsplit('.', 1)[1].lower()
logger.debug(file_ext)
logger.debug(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=' '):