mirror of
https://github.com/minio/minio.git
synced 2025-11-28 13:09:09 -05:00
Use validString
This commit is contained in:
@@ -90,7 +90,7 @@ func IsValidObject(object string) bool {
|
||||
if len(object) > 1024 || len(object) == 0 {
|
||||
return false
|
||||
}
|
||||
if !utf8.Valid(object) {
|
||||
if !utf8.ValidString(object) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user