mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00: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))
|
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."
|
||||||
|
Loading…
Reference in New Issue
Block a user