mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
utils: BucketNames with double periods and ip address should be rejected. (#2213)
Fixes #2212
This commit is contained in:
@@ -42,6 +42,8 @@ func TestIsValidBucketName(t *testing.T) {
|
||||
// cases for which test should fail.
|
||||
// passing invalid bucket names.
|
||||
{"------", false},
|
||||
{"my..bucket", false},
|
||||
{"192.168.1.1", false},
|
||||
{"$this-is-not-valid-too", false},
|
||||
{"contains-$-dollar", false},
|
||||
{"contains-^-carrot", false},
|
||||
|
||||
Reference in New Issue
Block a user