mirror of
https://github.com/minio/minio.git
synced 2025-11-24 03:27:44 -05:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
@@ -36,7 +36,7 @@ const (
|
||||
|
||||
// Ignores all reserved bucket names or invalid bucket names.
|
||||
func isReservedOrInvalidBucket(bucketEntry string, strict bool) bool {
|
||||
bucketEntry = strings.TrimSuffix(bucketEntry, "/")
|
||||
bucketEntry = strings.TrimSuffix(bucketEntry, minio.SlashSeparator)
|
||||
if strict {
|
||||
if err := s3utils.CheckValidBucketNameStrict(bucketEntry); err != nil {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user