We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b7ee5 commit 3324e2eCopy full SHA for 3324e2e
patchwork/common/tools/code_edit_tools.py
@@ -111,7 +111,7 @@ def tool_records(self):
111
112
def __get_abs_path(self, path: str):
113
abs_path = (self.repo_path / path.lstrip("/")).resolve()
114
- if not abs_path.is_relative_to(self.repo_path):
+ if not abs_path.is_relative_to(self.repo_path.resolve()):
115
raise ValueError(f"Path {path} contains illegal path traversal")
116
117
return abs_path
0 commit comments