|
|
@ -58,8 +58,6 @@ func IsValidBucketName(bucket string) bool { |
|
|
|
// - Caret ("^")
|
|
|
|
// - Caret ("^")
|
|
|
|
// - Right curly brace ("}")
|
|
|
|
// - Right curly brace ("}")
|
|
|
|
// - Grave accent / back tick ("`")
|
|
|
|
// - Grave accent / back tick ("`")
|
|
|
|
// - Right square bracket ("]")
|
|
|
|
|
|
|
|
// - Left square bracket ("[")
|
|
|
|
|
|
|
|
// - Tilde ("~")
|
|
|
|
// - Tilde ("~")
|
|
|
|
// - 'Greater Than' symbol (">")
|
|
|
|
// - 'Greater Than' symbol (">")
|
|
|
|
// - 'Less Than' symbol ("<")
|
|
|
|
// - 'Less Than' symbol ("<")
|
|
|
@ -72,7 +70,7 @@ func IsValidObjectName(object string) bool { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
// Reject unsupported characters in object name.
|
|
|
|
// Reject unsupported characters in object name.
|
|
|
|
return !strings.ContainsAny(object, "`^*{}[]|\\\"'") |
|
|
|
return !strings.ContainsAny(object, "`^*{}|\\\"'") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// IsValidObjectPrefix verifies whether the prefix is a valid object name.
|
|
|
|
// IsValidObjectPrefix verifies whether the prefix is a valid object name.
|
|
|
|