mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01:00
Merge branch 'refactor/backups' into refactor/upload-api
This commit is contained in:
commit
1ac63fae0d
@ -414,6 +414,14 @@ class ApiServersServerBackupsBackupFilesIndexHandler(BaseApiHandler):
|
|||||||
"error_data": str(e),
|
"error_data": str(e),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
self.helper.validate_traversal(
|
||||||
|
os.path.join(backup_conf["backup_location"], backup_conf["backup_id"]),
|
||||||
|
os.path.join(
|
||||||
|
backup_conf["backup_location"],
|
||||||
|
backup_conf["backup_id"],
|
||||||
|
data["filename"],
|
||||||
|
),
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
FileHelpers.del_file(
|
FileHelpers.del_file(
|
||||||
os.path.join(
|
os.path.join(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user