1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Fix an error on Linux during export

Fix #826
This commit is contained in:
Julien Duponchelle 2016-12-14 18:44:32 +01:00
parent 46b6e7c5ee
commit 1b6411f88e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -440,7 +440,7 @@ class ProjectHandler:
controller = Controller.instance() controller = Controller.instance()
project = yield from controller.get_loaded_project(request.match_info["project_id"]) project = yield from controller.get_loaded_project(request.match_info["project_id"])
path = request.match_info["path"] path = request.match_info["path"]
path = os.path.normpath(path) path = os.path.normpath(path).strip("/")
# Raise error if user try to escape # Raise error if user try to escape
if path[0] == ".": if path[0] == ".":