mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03: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