mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-25 01:44:28 +01:00
fix(workspace): resolve symlinks in workspace path before checking
This commit is contained in:
@@ -37,6 +37,7 @@ def safe_path_join(base: Path, *paths: str | Path) -> Path:
|
||||
Returns:
|
||||
Path: The joined path
|
||||
"""
|
||||
base = base.resolve()
|
||||
joined_path = base.joinpath(*paths).resolve()
|
||||
|
||||
if CFG.restrict_to_workspace and not joined_path.is_relative_to(base):
|
||||
|
||||
Reference in New Issue
Block a user