From 146e9d7b607fc02ecf45c71fad871f2d8fdc7a5d Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Wed, 12 Apr 2023 10:32:40 -0400 Subject: [PATCH] Fix import loop detection. --- app/classes/web/server_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/classes/web/server_handler.py b/app/classes/web/server_handler.py index 8b533bdf..e0921ce4 100644 --- a/app/classes/web/server_handler.py +++ b/app/classes/web/server_handler.py @@ -333,7 +333,7 @@ class ServerHandler(BaseHandler): if import_type == "import_jar": if self.helper.is_subdir( - import_server_path, self.controller.project_root + self.controller.project_root, import_server_path ): self.redirect( "/panel/error?error=Loop Error: The selected path will cause" @@ -499,7 +499,7 @@ class ServerHandler(BaseHandler): if import_type == "import_jar": if self.helper.is_subdir( - import_server_path, self.controller.project_root + self.controller.project_root, import_server_path ): self.redirect( "/panel/error?error=Loop Error: The selected path will cause"