mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 21:35:28 +00: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);
|
||||
m_chat_type_edit->clear();
|
||||
|
||||
DisplayMessage(QStringLiteral("%1: %2").arg(QString::fromStdString(m_nickname),
|
||||
QString::fromStdString(msg)),
|
||||
DisplayMessage(QStringLiteral("%1: %2").arg(QString::fromStdString(m_nickname).toHtmlEscaped(),
|
||||
QString::fromStdString(msg).toHtmlEscaped()),
|
||||
"blue");
|
||||
});
|
||||
}
|
||||
@ -439,7 +439,7 @@ void NetPlayDialog::DisplayMessage(const QString& msg, const std::string& color,
|
||||
|
||||
void NetPlayDialog::AppendChat(const std::string& msg)
|
||||
{
|
||||
DisplayMessage(QString::fromStdString(msg), "");
|
||||
DisplayMessage(QString::fromStdString(msg).toHtmlEscaped(), "");
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnMsgChangeGame(const std::string& title)
|
||||
|
Loading…
x
Reference in New Issue
Block a user