Commit bac08e93 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Escape env vars for the summary

parent fdc39de6
......@@ -31,6 +31,8 @@
#include <utils/detailswidget.h>
#include <QtGui/QTextDocument>
#include <QtGui/QVBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QToolButton>
......@@ -491,9 +493,9 @@ void EnvironmentWidget::updateSummaryText()
if (item.name != EnvironmentModel::tr("<VARIABLE>")) {
text.append("<br>");
if (item.unset)
text.append(tr("Unset <b>%1</b>").arg(item.name));
text.append(tr("Unset <b>%1</b>").arg(Qt::escape(item.name)));
else
text.append(tr("Set <b>%1</b> to <b>%2</b>").arg(item.name, item.value));
text.append(tr("Set <b>%1</b> to <b>%2</b>").arg(Qt::escape(item.name), Qt::escape(item.value)));
}
}
......
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