1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 18:17:19 +08:00

Fix hash comparison being case sensitive when choosing files for partial beatmap submission

Noticed when investigating https://github.com/ppy/osu/issues/32059, and
also a likely cause for user reports like
https://discord.com/channels/188630481301012481/1097318920991559880/1342962553101357066.

Honestly I have no solid defence, Your Honour. I guess this just must
not have been tested on the client side, only relied on server-side
testing.
This commit is contained in:
Bartłomiej Dach 2025-02-24 12:30:37 +01:00
parent e9b8154090
commit 0312467c88
No known key found for this signature in database

View File

@ -285,7 +285,7 @@ namespace osu.Game.Screens.Edit.Submission
continue;
}
if (localHash != onlineHash)
if (!localHash.Equals(onlineHash, StringComparison.OrdinalIgnoreCase))
filesToUpdate.Add(filename);
}