From 1545c1415c181a01d7a49c87d8682f24c995fba2 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 12 Aug 2022 20:24:11 -0400 Subject: [PATCH] Reload backup page on front end --- app/classes/web/panel_handler.py | 2 +- app/frontend/templates/panel/server_backup.html | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 2334c862..9138b1fc 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -1574,7 +1574,7 @@ class PanelHandler(BaseHandler): else: checked = self.controller.management.get_excluded_backup_dirs(server_id) if superuser: - backup_path = bleach.clean(self.get_argument("backup_path", None)) + backup_path = self.get_argument("backup_path", None) if Helpers.is_os_windows(): backup_path.replace(" ", "^ ") backup_path = Helpers.wtol_path(backup_path) diff --git a/app/frontend/templates/panel/server_backup.html b/app/frontend/templates/panel/server_backup.html index d97c2d14..72c37576 100644 --- a/app/frontend/templates/panel/server_backup.html +++ b/app/frontend/templates/panel/server_backup.html @@ -294,6 +294,7 @@ headers: { 'X-XSRFToken': token }, url: '/ajax/backup_now?id=' + server_id, success: function (data) { + location.reload(); }, }); } @@ -505,11 +506,6 @@ } }); } - if (webSocket) { - webSocket.on('backup_reload', function (backup) { - location.reload() - }); - } function getTreeView(path) { path = path