Commit 40cbc674 authored by hjk's avatar hjk

analyzer: htlm-escape function names before showing them as html

Templates tend to contain things like < and >.

Change-Id: Ia947f6fd9d49df81aa1e9b5041ef2dabd75769f6
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 596ce92d
......@@ -39,6 +39,7 @@
#include <QChar>
#include <QDebug>
#include <QStringList>
#include <QTextDocument>
#include <QVector>
namespace Valgrind {
......@@ -250,7 +251,7 @@ QVariant DataModel::data(const QModelIndex &index, int role) const
// body, function info first
ret += "<body><dl>";
ret += "<dt>" + tr("Function:") + "</dt><dd>" + func->name() + "</dd>\n";
ret += "<dt>" + tr("Function:") + "</dt><dd>" + Qt::escape(func->name()) + "</dd>\n";
ret += "<dt>" + tr("File:") + "</dt><dd>" + func->file() + "</dd>\n";
if (!func->costItems().isEmpty()) {
const CostItem *firstItem = func->costItems().first();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment