Merge pull request #380 from atsampson/escapechat

HTML-escape chat messages at the server
This commit is contained in:
Volker Fischer 2020-06-21 06:58:54 +02:00 committed by GitHub
commit 1b3e49f990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1334,7 +1334,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;