Update dependencies (#1951)
This commit is contained in:
2
vendor/github.com/spf13/afero/httpFs.go
generated
vendored
2
vendor/github.com/spf13/afero/httpFs.go
generated
vendored
@@ -29,7 +29,7 @@ type httpDir struct {
|
||||
}
|
||||
|
||||
func (d httpDir) Open(name string) (http.File, error) {
|
||||
if filepath.Separator != '/' && strings.IndexRune(name, filepath.Separator) >= 0 ||
|
||||
if filepath.Separator != '/' && strings.ContainsRune(name, filepath.Separator) ||
|
||||
strings.Contains(name, "\x00") {
|
||||
return nil, errors.New("http: invalid character in file path")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user