mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Protect controller and compute about path outside project directory
Fix #503
This commit is contained in:
4 files changed
+75
-1
No files matched your search
@@ -29,6 +29,7 @@ from .port_manager import PortManager
|
||||
from .notification_manager import NotificationManager
|
||||
from ..config import Config
|
||||
from ..utils.asyncio import wait_run_in_executor
|
||||
from ..utils.path import check_path_allowed
|
||||
|
||||
|
||||
import logging
|
||||
@@ -122,6 +123,7 @@ class Project:
|
||||
|
||||
@path.setter
|
||||
def path(self, path):
|
||||
check_path_allowed(path)
|
||||
|
||||
if hasattr(self, "_path"):
|
||||
if path != self._path and self.is_local() is False:
|
||||
|
||||
Reference in new issue
Block a user