Skip to content

Commit

Permalink
Added check for invalid utf8 chars in userinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Splatt581 committed Jan 5, 2025
1 parent e999171 commit a76a260
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rehlds/engine/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a76a260

Please sign in to comment.