mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
Appease the linter
This commit is contained in:
parent
97900cd283
commit
b725054dcd
@ -1515,12 +1515,10 @@ 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))
|
||||
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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user