1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Fix room password not being percent-encoded in join request

This commit is contained in:
Bartłomiej Dach 2021-07-22 23:11:58 +02:00
parent 3392086d1c
commit 6dbdfcc70c
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -22,10 +22,10 @@ namespace osu.Game.Online.Rooms
{
var req = base.CreateWebRequest();
req.Method = HttpMethod.Put;
req.AddParameter(@"password", Password, RequestParameterType.Query);
return req;
}
// Todo: Password needs to be specified here rather than via AddParameter() because this is a PUT request. May be a framework bug.
protected override string Target => $"rooms/{Room.RoomID.Value}/users/{User.Id}?password={Password}";
protected override string Target => $@"rooms/{Room.RoomID.Value}/users/{User.Id}";
}
}