Skip to content

Commit

Permalink
Info_SetValueForStarKey allow a colon in playername
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Oct 7, 2023
1 parent e36a40c commit 08210be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reapi/common/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 08210be

Please sign in to comment.