Merge pull request #8079 from Robyt3/Econ-UTF8-Validate

Ensure commands executed via Econ are valid UTF-8
This commit is contained in:
Dennis Felsing 2024-03-10 13:01:33 +00:00 committed by GitHub
commit aa2574e727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ int CConsoleNetConnection::Recv(char *pLine, int MaxLength)
str_sanitize_cc(pLine);
mem_move(m_aBuffer, m_aBuffer + EndOffset, m_BufferOffset - EndOffset);
m_BufferOffset -= EndOffset;
return 1;
return str_utf8_check(pLine);
}
}
return 0;