2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-16 00:28:20 +03:00

HLTV: prevent clients from setting userinfo * keys with setinfo command (#792)

This commit is contained in:
Juice 2020-12-03 16:14:54 +03:00 committed by GitHub
parent 954ec3237c
commit 83c0b6ea2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,6 +320,10 @@ void BaseClient::CMD_SetInfo(TokenLine *cmd)
return;
}
if (cmd->GetToken(1)[0] == '*') {
return;
}
m_Userinfo.SetValueForKey(cmd->GetToken(1), cmd->GetToken(2));
UpdateUserInfo();
}