From 8503e961d85ced12ba148fe27fcef2847c2a966e Mon Sep 17 00:00:00 2001 From: James Collins Date: Fri, 21 Jul 2023 09:09:14 -0700 Subject: [PATCH] Bugfix/bad null byte (#5033) * Remove bad null byte * Also don't try to block url null bytes --- autogpt/workspace/workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/workspace/workspace.py b/autogpt/workspace/workspace.py index 07186e73..d4bc7f65 100644 --- a/autogpt/workspace/workspace.py +++ b/autogpt/workspace/workspace.py @@ -19,7 +19,7 @@ from autogpt.logs import logger class Workspace: """A class that represents a workspace for an AutoGPT agent.""" - NULL_BYTES = ["\0", "\000", "\x00", r"\z", "\u0000", "%00"] + NULL_BYTES = ["\0", "\000", "\x00", "\u0000"] def __init__(self, workspace_root: str | Path, restrict_to_workspace: bool): self._root = self._sanitize_path(workspace_root)