From d9b93ccd66a6907a6adc07b344d52e47ebd47930 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 18 Apr 2017 18:04:00 +0200 Subject: [PATCH] Fix an issue with editing network on windows Fix #982 --- gns3server/handlers/api/controller/node_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/handlers/api/controller/node_handler.py b/gns3server/handlers/api/controller/node_handler.py index d9a715f0..50166e88 100644 --- a/gns3server/handlers/api/controller/node_handler.py +++ b/gns3server/handlers/api/controller/node_handler.py @@ -20,6 +20,7 @@ import aiohttp from gns3server.web.route import Route from gns3server.controller import Controller +from gns3server.utils import force_unix_path from gns3server.schemas.node import ( NODE_OBJECT_SCHEMA, @@ -337,7 +338,7 @@ class NodeHandler: project = yield from Controller.instance().get_loaded_project(request.match_info["project_id"]) node = project.get_node(request.match_info["node_id"]) path = request.match_info["path"] - path = os.path.normpath(path) + path = force_unix_path(path) # Raise error if user try to escape if path[0] == ".":