diff --git a/pkg/registry/blobs.go b/pkg/registry/blobs.go index c83e54799..73a8331c7 100644 --- a/pkg/registry/blobs.go +++ b/pkg/registry/blobs.go @@ -38,6 +38,9 @@ import ( func isBlob(req *http.Request) bool { elem := strings.Split(req.URL.Path, "/") elem = elem[1:] + if len(elem) < 3 { + return false + } if elem[len(elem)-1] == "" { elem = elem[:len(elem)-1] }