]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix preferences sent to client not being sanitized (#27789)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Wed, 8 May 2024 02:24:54 +0000 (04:24 +0200)
committerGitHub <noreply@github.com>
Wed, 8 May 2024 02:24:54 +0000 (04:24 +0200)
commit9efe4dc70120a001ac2964b11d6773cb0a39d1da
tree012b746b91c46b545fbf439f631b9c60625845bf
parentab1a2de367e307eaadaef9d2c90addeb96d625b9
Fix preferences sent to client not being sanitized (#27789)

Fucking whoops

In #27742 I made it so sanitization of character profiles was moved to be *after* database load. Except that means I moved it to be after the copy of all character profiles got sent to the client.

Move the sending to *also* be in that second load stage, and rename it. Fixes the issue.
Content.Server/Database/UserDbDataManager.cs
Content.Server/Preferences/Managers/IServerPreferencesManager.cs
Content.Server/Preferences/Managers/ServerPreferencesManager.cs