From e9158bae6f74d64576eeea9d7d6948943afdd441 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 14 Jul 2018 22:58:34 +0200 Subject: [PATCH] Qt/LogWidget: Fix messages not being escaped properly --- Source/Core/DolphinQt/Config/LogWidget.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Core/DolphinQt/Config/LogWidget.cpp b/Source/Core/DolphinQt/Config/LogWidget.cpp index ae7cb70984..771acf7289 100644 --- a/Source/Core/DolphinQt/Config/LogWidget.cpp +++ b/Source/Core/DolphinQt/Config/LogWidget.cpp @@ -210,10 +210,11 @@ void LogWidget::Log(LogTypes::LOG_LEVELS level, const char* text) break; } - m_log_queue.push(QStringLiteral("%1 %3") - .arg(QString::fromStdString(std::string(text).substr(0, TIMESTAMP_LENGTH)), - QString::fromStdString(color), - QString::fromStdString(std::string(text).substr(TIMESTAMP_LENGTH)))); + m_log_queue.push( + QStringLiteral("%1 %3") + .arg(QString::fromStdString(std::string(text).substr(0, TIMESTAMP_LENGTH)), + QString::fromStdString(color), + QString::fromStdString(std::string(text).substr(TIMESTAMP_LENGTH)).toHtmlEscaped())); } void LogWidget::closeEvent(QCloseEvent*)