mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Add policy validation code more rigorous
This commit is contained in:
@@ -24,7 +24,7 @@ func (d Date) IsZero() bool {
|
||||
|
||||
// Convert string date in format YYYY-MM-DD to Date.
|
||||
// Leading and trailing spaces are ignored. If format is invalid returns zero.
|
||||
func ParseDate(str string) (d Date, err error) {
|
||||
func parseDate(str string) (d Date, err error) {
|
||||
str = strings.TrimSpace(str)
|
||||
if str == "0000-00-00" {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user