Replaced one-pager with multiple pages and fixed security bugs
This commit is contained in:
@@ -83,6 +83,10 @@ func handleCreateCompetition(w http.ResponseWriter, r *http.Request) {
|
||||
writeError(w, http.StatusBadRequest, "missing_name")
|
||||
return
|
||||
}
|
||||
if len(req.Name) > 200 {
|
||||
writeError(w, http.StatusBadRequest, "too_long")
|
||||
return
|
||||
}
|
||||
allow := 0
|
||||
if req.AllowAnyScorerEdit {
|
||||
allow = 1
|
||||
|
||||
Reference in New Issue
Block a user