mirror of
https://github.com/rehlds/rehlds.git
synced 2025-04-09 11:00:08 +03:00
Added check for invalid utf8 chars in userinfo (#1074)
This commit is contained in:
parent
2f87ace7fc
commit
98b4103b86
@ -856,6 +856,12 @@ qboolean Info_IsValid(const char *s)
|
||||
return false;
|
||||
};
|
||||
|
||||
// invalid utf8 chars are deprecated
|
||||
if (!Q_UnicodeValidate(s))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
while (*s == '\\')
|
||||
{
|
||||
const char* key = ++s;
|
||||
|
Loading…
x
Reference in New Issue
Block a user