Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Aaron Powell
2026-06-11 16:16:04 +10:00
committed by GitHub
parent d97d8de7ac
commit b9ea0b7d29
+1 -1
View File
@@ -148,7 +148,7 @@ function normalizeRelativePath(value) {
return "";
}
if (cleaned.includes("..")) {
if (/(^|\/)\.\.(\/|$)/.test(cleaned)) {
throw new Error(`Unsafe relative path in changed files list: ${value}`);
}