Skip to content

Commit

Permalink
fix: Potential file inclusion via variable
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Jun 12, 2022
1 parent 6b2fa9a commit 190014c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/vfs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (fs *fileSystem) Open(path string) (RFile, error) {
}

func (fs *fileSystem) OpenFile(path string, flag int, mode os.FileMode) (WFile, error) {
f, err := os.OpenFile(filepath.Clean(fs.path(path)), flag, mode)
f, err := os.OpenFile(fs.path(filepath.Clean(path)), flag, mode)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 190014c

Please sign in to comment.