diff --git a/gns3server/controller/import_project.py b/gns3server/controller/import_project.py index bdf7fe5a..c9f2cba9 100644 --- a/gns3server/controller/import_project.py +++ b/gns3server/controller/import_project.py @@ -49,6 +49,9 @@ def import_project(controller, project_id, stream, location=None, name=None, kee :returns: Project """ + if location and ".gns3" in location: + raise aiohttp.web.HTTPConflict(text="The destination path should not contain .gns3") + with zipfile.ZipFile(stream) as myzip: try: