mirror of
https://github.com/minio/minio.git
synced 2026-11-17 14:56:19 +00:00
Use validString
This commit is contained in:
1 parent
27fab98bf9
commit
d5e5a3b3e6
2 files changed
+3
-3
No files matched your search
@@ -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