From 08210bec75baf7a0d82d5bea70dfe61b19b4d16f Mon Sep 17 00:00:00 2001 From: s1lentq Date: Sat, 7 Oct 2023 16:28:07 +0700 Subject: [PATCH] Info_SetValueForStarKey allow a colon in playername --- reapi/common/info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reapi/common/info.cpp b/reapi/common/info.cpp index 5e0f096..8ebcfcf 100644 --- a/reapi/common/info.cpp +++ b/reapi/common/info.cpp @@ -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");