Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion patchwork/common/tools/code_edit_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def tool_records(self):

def __get_abs_path(self, path: str):
abs_path = (self.repo_path / path.lstrip("/")).resolve()
if not abs_path.is_relative_to(self.repo_path):
if not abs_path.is_relative_to(self.repo_path.resolve()):
raise ValueError(f"Path {path} contains illegal path traversal")

return abs_path
Expand Down
Loading