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 b778445Copy full SHA for b778445
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
pyproject.toml
@@ -1,6 +1,6 @@
1
[tool.poetry]
2
name = "patchwork-cli"
3
-version = "0.0.79"
+version = "0.0.80"
4
description = ""
5
authors = ["patched.codes"]
6
license = "AGPL"
0 commit comments