2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-04-23 06:43:36 +03:00

Added check for invalid utf8 chars in userinfo (#1074)

This commit is contained in:
Splatt581 2025-04-04 01:08:30 +03:00 committed by GitHub
parent 2f87ace7fc
commit 98b4103b86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -856,6 +856,12 @@ qboolean Info_IsValid(const char *s)
return false; return false;
}; };
// invalid utf8 chars are deprecated
if (!Q_UnicodeValidate(s))
{
return FALSE;
}
while (*s == '\\') while (*s == '\\')
{ {
const char* key = ++s; const char* key = ++s;