mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 03:44:25 +01:00
Bugfix/bad null byte (#5033)
* Remove bad null byte * Also don't try to block url null bytes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user