diff --git a/site-api.go b/site-api.go index c81ec4f..f86b4f3 100644 --- a/site-api.go +++ b/site-api.go @@ -162,6 +162,9 @@ func getVerifications(w http.ResponseWriter, r *http.Request) { var v []Verification for _, file := range files { info := strings.Split(file, "-") + if len(info) < 3 { + continue + } var ver Verification ver.UserID = info[0] ver.Username = info[1]