mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove bad check for backup path
This commit is contained in:
parent
b725054dcd
commit
d8d80bbb42
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user