File size: 488 Bytes
d61821a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | diff --git a/helpers/archives/gzip_create.go b/helpers/archives/gzip_create.go
index b2b85281..082f2507 100644
--- a/helpers/archives/gzip_create.go
+++ b/helpers/archives/gzip_create.go
@@ -27,7 +27,7 @@ func writeGzipFile(w io.Writer, fileName string, fileInfo os.FileInfo) error {
}
gz := gzip.NewWriter(w)
- gz.Header.Name = fileInfo.Name()
+ gz.Header.Name = sanitizePath(fileInfo.Name())
gz.Header.Comment = sanitizePath(fileName)
gz.Header.ModTime = fileInfo.ModTime()
|