Fix import loop detection.

This commit is contained in:
amcmanu3 2023-04-12 10:32:40 -04:00
parent 8b528993b5
commit 146e9d7b60

View File

@ -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"