mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8079 from Robyt3/Econ-UTF8-Validate
Ensure commands executed via Econ are valid UTF-8
This commit is contained in:
commit
aa2574e727
|
@ -143,7 +143,7 @@ int CConsoleNetConnection::Recv(char *pLine, int MaxLength)
|
||||||
str_sanitize_cc(pLine);
|
str_sanitize_cc(pLine);
|
||||||
mem_move(m_aBuffer, m_aBuffer + EndOffset, m_BufferOffset - EndOffset);
|
mem_move(m_aBuffer, m_aBuffer + EndOffset, m_BufferOffset - EndOffset);
|
||||||
m_BufferOffset -= EndOffset;
|
m_BufferOffset -= EndOffset;
|
||||||
return 1;
|
return str_utf8_check(pLine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue