Skip to content

Commit 3e7213e

Browse files
ilopezlunaCopilot
andauthored
Update pkg/distribution/internal/bundle/unpack.go
Co-authored-by: Copilot <[email protected]>
1 parent ecd743e commit 3e7213e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/distribution/internal/bundle/unpack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func unpackConfigArchive(bundle *Bundle, mdl types.Model) error {
210210
}
211211

212212
// validatePathWithinDirectory checks if targetPath is within baseDir to prevent directory traversal attacks.
213-
// It uses filepath.IsLocal() which is available in Go 1.20+ and provides robust security against
213+
// It uses filepath.IsLocal() to provide robust security against
214214
// various directory traversal attempts including edge cases like empty paths, ".", "..", symbolic links, etc.
215215
func validatePathWithinDirectory(baseDir, targetPath string) error {
216216
// Get absolute path of base directory

0 commit comments

Comments
 (0)