aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar James Collins <collijk@uw.edu> 2023-07-21 09:09:14 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-21 09:09:14 -0700
commit8503e961d85ced12ba148fe27fcef2847c2a966e (patch)
tree1a54be5688bb711fca4e5847bca69c8ef86c70c1
parentBugfix/remove breakpoint from embedding function (#5022) (diff)
downloadAuto-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.py2
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)