Remove bad check for backup path

This commit is contained in:
amcmanu3 2022-06-21 17:41:52 -04:00
parent b725054dcd
commit d8d80bbb42

View File

@ -1515,16 +1515,7 @@ class PanelHandler(BaseHandler):
max_backups = bleach.clean(self.get_argument("max_backups", None))
server_obj = self.controller.servers.get_server_obj(server_id)
if not backup_path == self.helper.wtol_path(
os.path.join(self.helper.backup_path, server_obj.server_uuid)
) and backup_path.startswith(
self.helper.wtol_path(self.controller.project_root)
):
self.redirect(
"/panel/error?error=Nefarious activities detected."
" User attempted to make backup path within Crafty's root."
)
return
server_obj.backup_path = backup_path
self.controller.servers.update_server(server_obj)
self.controller.management.set_backup_config(