HTML-escape channel names at the server.

This commit is contained in:
Adam Sampson 2020-06-20 17:07:12 +01:00
parent c926db8360
commit a6206e664d

View File

@ -1333,7 +1333,8 @@ void CServer::CreateAndSendChatTextForAllConChannels ( const int iCurChanID
const QString strActualMessageText =
"<font color=""" + sCurColor + """>(" +
QTime::currentTime().toString ( "hh:mm:ss AP" ) + ") <b>" + ChanName +
QTime::currentTime().toString ( "hh:mm:ss AP" ) + ") <b>" +
ChanName.toHtmlEscaped() +
"</b></font> " + strChatText;