AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
added information about directory transversal
SwiftyOS8c49b84faa38
diff --git a/autogpts/forge/forge/sdk/workspace.py b/autogpts/forge/forge/sdk/workspace.pyindex dd6642cbd9..89d46150e4 100644--- a/autogpts/forge/forge/sdk/workspace.py+++ b/autogpts/forge/forge/sdk/workspace.py@@ -40,7 +40,7 @@ class LocalWorkspace(Workspace):abs_path = (self.base_path / task_id / path).resolve()if not str(abs_path).startswith(str(self.base_path)):print("Error")- raise ValueError("Directory traversal is not allowed!")+ raise ValueError(f"Directory traversal is not allowed! - {abs_path}")abs_path.parent.mkdir(parents=True, exist_ok=True)return abs_path