2
0
mirror of https://github.com/s1lentq/reapi.git synced 2024-10-16 15:27:06 +03:00

Info_SetValueForStarKey allow a colon in playername

This commit is contained in:
s1lentq 2023-10-07 16:28:07 +07:00
parent e36a40c3e5
commit 08210bec75

View File

@ -282,7 +282,7 @@ void Info_SetValueForStarKey(char *s, const char *key, const char *value, int ma
return;
}
if (Q_strstr(key, "..") || Q_strstr(value, ".."))
if (Q_strstr(key, "..") || (Q_strcmp(key, "name") != 0 && Q_strstr(value, "..")))
{
// TODO: Why silently return?
//UTIL_ServerPrint("Can't use keys or values with a ..\n");