Skip to content
Snippets Groups Projects
Commit bac08e93 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Escape env vars for the summary

parent fdc39de6
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include <utils/detailswidget.h> #include <utils/detailswidget.h>
#include <QtGui/QTextDocument>
#include <QtGui/QVBoxLayout> #include <QtGui/QVBoxLayout>
#include <QtGui/QHeaderView> #include <QtGui/QHeaderView>
#include <QtGui/QToolButton> #include <QtGui/QToolButton>
...@@ -491,9 +493,9 @@ void EnvironmentWidget::updateSummaryText() ...@@ -491,9 +493,9 @@ void EnvironmentWidget::updateSummaryText()
if (item.name != EnvironmentModel::tr("<VARIABLE>")) { if (item.name != EnvironmentModel::tr("<VARIABLE>")) {
text.append("<br>"); text.append("<br>");
if (item.unset) 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 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)));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment