# HG changeset patch
# User sheepluva
# Date 1401629163 -7200
# Node ID 814e137625f7496fd4e07ac4fcba15dbc41a940e
# Parent a3b42e81803c8c41644f66da26a74fd63e3800eb
escape info message arguments, fixes issue 801: Frontend parses INFO command output as html
diff -r a3b42e81803c -r 814e137625f7 QTfrontend/ui/widget/chatwidget.cpp
--- a/QTfrontend/ui/widget/chatwidget.cpp Sun Jun 01 04:17:27 2014 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp Sun Jun 01 15:26:03 2014 +0200
@@ -593,9 +593,10 @@
{
addLine("msg_PlayerInfo", QString(" >>> %1 - %2 %3 %4")
.arg(linkedNick(nick))
- .arg(ip == "[]"?"":ip)
- .arg(version)
- .arg(roomInfo));
+ .arg(Qt::escape(ip == "[]"?"":ip))
+ .arg(Qt::escape(version))
+ .arg(Qt::escape(roomInfo))
+ );
}
void HWChatWidget::onKick()