Skip to content

Commit

Permalink
Web: Sort team list in teams.json to prevent leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rudis committed Jul 7, 2022
1 parent bb40b2b commit ce56a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctf_gameserver/web/scoring/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def teams_json(_):
flag_ids[flag.service.name][flag.protecting_team.net_number].append(flag.flagid)

response = {
'teams': list(teams),
'teams': sorted(list(teams)),
'flag_ids': flag_ids
}

Expand Down

0 comments on commit ce56a10

Please sign in to comment.