From ee828a04bc10192996133c5aba96a84d9c55ca17 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 10 May 2023 09:38:16 +0200 Subject: [PATCH] fix: [UI feeder] fix logger --- configs/core.cfg.sample | 2 +- var/www/modules/PasteSubmit/Flask_PasteSubmit.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/core.cfg.sample b/configs/core.cfg.sample index 8f26637e..bb9054fc 100644 --- a/configs/core.cfg.sample +++ b/configs/core.cfg.sample @@ -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 diff --git a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py index e0f6b418..7d918482 100644 --- a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py +++ b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py @@ -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=' '):