mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
fs/erasure: Ignore objects with / even for DeleteObject() (#4303)
Additionally GetObject() also returns errFileNotFound similar to HeadObject(). Fixes #4302
This commit is contained in:
@@ -119,10 +119,7 @@ func IsValidObjectName(object string) bool {
|
||||
if len(object) == 0 {
|
||||
return false
|
||||
}
|
||||
if hasSuffix(object, slashSeparator) {
|
||||
return false
|
||||
}
|
||||
if hasPrefix(object, slashSeparator) {
|
||||
if hasSuffix(object, slashSeparator) || hasPrefix(object, slashSeparator) {
|
||||
return false
|
||||
}
|
||||
return IsValidObjectPrefix(object)
|
||||
|
||||
Reference in New Issue
Block a user