Merge pull request #11604 from spzala/strconvuint

auth: parse to uint instead of int
This commit is contained in:
Hitoshi Mitake 2020-02-10 23:02:11 +09:00 committed by GitHub
commit 5852755250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,7 @@ func (t *tokenSimple) isValidSimpleToken(ctx context.Context, token string) bool
if len(splitted) != 2 {
return false
}
index, err := strconv.Atoi(splitted[1])
index, err := strconv.ParseUint(splitted[1], 10, 0)
if err != nil {
return false
}