Fixes #2108 (gns3-gui): getting project file with leading slashes issue (#1078)

This commit is contained in:
ziajka authored and Julien Duponchelle committed 2017-06-21 10:26:36 +02:00
1 parent 6730cfe823
commit ea9f0e52c8
2 files changed
+10 -1

No files matched your search

@@ -396,7 +396,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] == ".":