mirror of
https://github.com/ko-build/ko.git
synced 2025-03-17 20:47:51 +02:00
Clean filepath from zip before creating tempdir (#459)
This commit is contained in:
parent
b9cd759f25
commit
5ac3ef93f7
@ -94,7 +94,7 @@ If the image was not built using ko, or if it was built without embedding depend
|
||||
continue
|
||||
}
|
||||
|
||||
tmp, err := ioutil.TempFile("", filepath.Base(h.Name))
|
||||
tmp, err := ioutil.TempFile("", filepath.Base(filepath.Clean(h.Name)))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user