Fix bug where server_path variable was still used

I'm dumb and I fixed a bug I created.
This commit is contained in:
Andrew 2022-12-22 20:59:45 -05:00
parent af10353119
commit 88cd991b7e

View File

@ -1521,10 +1521,6 @@ class PanelHandler(BaseHandler):
server_obj = self.controller.servers.get_server_obj(server_id)
shutdown_timeout = self.get_argument("shutdown_timeout", 60)
if superuser:
server_path = self.get_argument("server_path", None)
if Helpers.is_os_windows():
server_path.replace(" ", "^ ")
server_path = Helpers.wtol_path(server_path)
log_path = self.get_argument("log_path", "")
if log_path:
if Helpers.is_os_windows():
@ -1613,7 +1609,7 @@ class PanelHandler(BaseHandler):
server_obj.shutdown_timeout = shutdown_timeout
if superuser:
if Helpers.validate_traversal(
self.helper.get_servers_root_dir(), server_path
self.helper.get_servers_root_dir(), server_obj.path
):
server_obj.log_path = log_path
if Helpers.validate_traversal(