We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86edc98 commit ee21290Copy full SHA for ee21290
1 file changed
tools/trond/utils/http.go
@@ -453,10 +453,6 @@ func ExtractTgzWithStatus(tgzFile, destDir string) error {
453
454
// Target file path
455
target := filepath.Join(destDir, sanitizedName)
456
- // Ensure the target path is still within the destination directory
457
- if !strings.HasPrefix(target, filepath.Clean(destDir)+string(os.PathSeparator)) {
458
- return fmt.Errorf("attempted directory traversal: %s", header.Name)
459
- }
460
461
switch header.Typeflag {
462
case tar.TypeDir:
0 commit comments