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:
parent
2f87ace7fc
commit
98b4103b86
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user