From eafb699bbfc0f7fc1af528b4f5f147b3cea30672 Mon Sep 17 00:00:00 2001 From: ebolam Date: Mon, 17 Jul 2023 09:12:45 -0400 Subject: [PATCH] missed the elif --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index c1da343b..3ff8a3e0 100644 --- a/aiserver.py +++ b/aiserver.py @@ -5599,7 +5599,7 @@ def upload_file(data): if os.path.join(os.getcwd(), "modeling") in path: logger.error("Someone tried to upload something to the modeling directory. As the system loads code dynamically from here we cannot allow that!") emit("error_popup", "You tried to upload a file to the modeling directory. This is a secuirty concern and cannot be done.", broadcast=False, room="UI_2"); - if 'popup_jailed_dir' not in session: + elif 'popup_jailed_dir' not in session: logger.error("Someone is trying to upload a file to your server. Blocked.") emit("error_popup", "Someone is trying to upload a file to your server. Blocked.", broadcast=False, room="UI_2"); elif session['popup_jailed_dir'] is None: