diff options
author | James Collins <collijk@uw.edu> | 2023-07-21 09:09:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 09:09:14 -0700 |
commit | 8503e961d85ced12ba148fe27fcef2847c2a966e (patch) | |
tree | 1a54be5688bb711fca4e5847bca69c8ef86c70c1 | |
parent | Bugfix/remove breakpoint from embedding function (#5022) (diff) | |
download | Auto-GPT-8503e961d85ced12ba148fe27fcef2847c2a966e.tar.gz Auto-GPT-8503e961d85ced12ba148fe27fcef2847c2a966e.tar.bz2 Auto-GPT-8503e961d85ced12ba148fe27fcef2847c2a966e.zip |
Bugfix/bad null byte (#5033)
* Remove bad null byte
* Also don't try to block url null bytes
-rw-r--r-- | autogpt/workspace/workspace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autogpt/workspace/workspace.py b/autogpt/workspace/workspace.py index 07186e735..d4bc7f65a 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) |