1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 18:09:58 +08:00

Limit maximum password length for multiplayer lobbies to conformant value (#37329)

See https://github.com/ppy/osu/issues/37324.
This commit is contained in:
Dean Herbert
2026-04-17 15:33:49 +09:00
committed by GitHub
Unverified
parent 964d3fbdbc
commit cb843b1a2b
@@ -237,7 +237,13 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
{
RelativeSizeAxes = Axes.X,
TabbableContentContainer = this,
LengthLimit = 255,
// Set quite small to avoid hitting rich presence limits.
// Note that we use JSON encoding so this needs to be well below the 128 byte limit discord end.
// See https://github.com/Lachee/discord-rpc-csharp/blob/master/DiscordRPC/Entities/Secrets.cs#L26-L42
//
// Note that we need at least 36 characters for tournament rooms:
// https://github.com/ppy/osu-server-spectator/blob/406ed09d5825f2fe60c9d5ca08e69db94d873e28/osu.Server.Spectator/Hubs/Referee/RefereeHub.cs#L101
LengthLimit = 40,
},
},
new Section("Other")