Skip to content

Commit

Permalink
Bugfix/bad null byte (#5033)
Browse files Browse the repository at this point in the history
* Remove bad null byte

* Also don't try to block url null bytes
  • Loading branch information
collijk committed Jul 21, 2023
1 parent 98c3f6b commit 8503e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/workspace/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
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)
Expand Down

0 comments on commit 8503e96

Please sign in to comment.