From 2a9a220770fe619e761a752d2b3d5dc882b65515 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 2 Sep 2018 18:36:33 -0400 Subject: [PATCH] backups: Use valid filename for manifest Signed-off-by: James Valleroy Reviewed-by: Joseph Nuthalapati --- plinth/modules/backups/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/backups/__init__.py b/plinth/modules/backups/__init__.py index a69737647..fc0ccaddf 100644 --- a/plinth/modules/backups/__init__.py +++ b/plinth/modules/backups/__init__.py @@ -81,7 +81,8 @@ def _backup_handler(packet): if not os.path.exists(MANIFESTS_FOLDER): os.makedirs(MANIFESTS_FOLDER) - manifest_path = MANIFESTS_FOLDER + packet.label + '.json' + manifest_path = MANIFESTS_FOLDER + get_valid_filename( + packet.label) + '.json' manifests = [{ 'name': x[0], 'version': x[1].version,