mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Qt/NetPlayDialog: Escape HTML in chat
This commit is contained in:
parent
893c5e694e
commit
7550389c72
@ -201,8 +201,8 @@ void NetPlayDialog::OnChat()
|
|||||||
Settings::Instance().GetNetPlayClient()->SendChatMessage(msg);
|
Settings::Instance().GetNetPlayClient()->SendChatMessage(msg);
|
||||||
m_chat_type_edit->clear();
|
m_chat_type_edit->clear();
|
||||||
|
|
||||||
DisplayMessage(QStringLiteral("%1: %2").arg(QString::fromStdString(m_nickname),
|
DisplayMessage(QStringLiteral("%1: %2").arg(QString::fromStdString(m_nickname).toHtmlEscaped(),
|
||||||
QString::fromStdString(msg)),
|
QString::fromStdString(msg).toHtmlEscaped()),
|
||||||
"blue");
|
"blue");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -439,7 +439,7 @@ void NetPlayDialog::DisplayMessage(const QString& msg, const std::string& color,
|
|||||||
|
|
||||||
void NetPlayDialog::AppendChat(const std::string& msg)
|
void NetPlayDialog::AppendChat(const std::string& msg)
|
||||||
{
|
{
|
||||||
DisplayMessage(QString::fromStdString(msg), "");
|
DisplayMessage(QString::fromStdString(msg).toHtmlEscaped(), "");
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetPlayDialog::OnMsgChangeGame(const std::string& title)
|
void NetPlayDialog::OnMsgChangeGame(const std::string& title)
|
||||||
|
Loading…
Reference in New Issue
Block a user