fix: [UI feeder] fix logger

This commit is contained in:
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 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

View file

@ -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=' '):