From 1b6411f88ed528499a35d4f7bf28d449bd29248d Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 14 Dec 2016 18:44:32 +0100 Subject: [PATCH] Fix an error on Linux during export Fix #826 --- gns3server/handlers/api/controller/project_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/handlers/api/controller/project_handler.py b/gns3server/handlers/api/controller/project_handler.py index 03930494..77e180be 100644 --- a/gns3server/handlers/api/controller/project_handler.py +++ b/gns3server/handlers/api/controller/project_handler.py @@ -440,7 +440,7 @@ class ProjectHandler: controller = Controller.instance() project = yield from controller.get_loaded_project(request.match_info["project_id"]) path = request.match_info["path"] - path = os.path.normpath(path) + path = os.path.normpath(path).strip("/") # Raise error if user try to escape if path[0] == ".":