We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b248b44 commit 5799287Copy full SHA for 5799287
go/ql/src/Security/CWE-022/ZipSlipGood.go
@@ -12,7 +12,7 @@ func unzipGood(f string) {
12
for _, f := range r.File {
13
p, _ := filepath.Abs(f.Name)
14
// GOOD: Check that path does not contain ".." before using it
15
- if !strings.Contains(p, "..") {
+ if !strings.Contains(f.Name, "..") {
16
ioutil.WriteFile(p, []byte("present"), 0666)
17
}
18
0 commit comments