Merge pull request #380 from atsampson/escapechat
HTML-escape chat messages at the server
This commit is contained in:
commit
1b3e49f990
1 changed files with 2 additions and 1 deletions
|
@ -1334,7 +1334,8 @@ void CServer::CreateAndSendChatTextForAllConChannels ( const int iCurChanID
|
||||||
|
|
||||||
const QString strActualMessageText =
|
const QString strActualMessageText =
|
||||||
"<font color=""" + sCurColor + """>(" +
|
"<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;
|
"</b></font> " + strChatText;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue