From a76a260f004ba79076c9d26684df4b4add7413d8 Mon Sep 17 00:00:00 2001 From: Splatt581 Date: Sun, 5 Jan 2025 22:23:42 +0300 Subject: [PATCH] Added check for invalid utf8 chars in userinfo --- rehlds/engine/info.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rehlds/engine/info.cpp b/rehlds/engine/info.cpp index 6680d3571..d0a36e331 100644 --- a/rehlds/engine/info.cpp +++ b/rehlds/engine/info.cpp @@ -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;