Appease the linter

This commit is contained in:
amcmanu3 2022-06-21 17:36:50 -04:00
parent 97900cd283
commit b725054dcd

View File

@ -1515,12 +1515,10 @@ class PanelHandler(BaseHandler):
max_backups = bleach.clean(self.get_argument("max_backups", None)) max_backups = bleach.clean(self.get_argument("max_backups", None))
server_obj = self.controller.servers.get_server_obj(server_id) server_obj = self.controller.servers.get_server_obj(server_id)
if ( if not backup_path == self.helper.wtol_path(
not backup_path os.path.join(self.helper.backup_path, server_obj.server_uuid)
== self.helper.wtol_path( ) and backup_path.startswith(
os.path.join(self.helper.backup_path, server_obj.server_uuid) self.helper.wtol_path(self.controller.project_root)
)
and backup_path.startswith(self.helper.wtol_path(self.controller.project_root))
): ):
self.redirect( self.redirect(
"/panel/error?error=Nefarious activities detected." "/panel/error?error=Nefarious activities detected."