From 8c99a5f60da7079691275adbcb989832859b59a3 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 16 Oct 2013 16:52:30 +0000 Subject: [PATCH] fixed: quoted string doesn't work on mac --- src/gui/src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index eb6b0965..235de7a7 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -471,8 +471,10 @@ bool MainWindow::clientArgs(QStringList& args, QString& app) return false; } +#if Q_OS_WIN // wrap in quotes so a malicious user can't start \Program.exe as admin. app = QString("\"%1\"").arg(app); +#endif if (m_pLineEditHostname->text().isEmpty()) { @@ -549,8 +551,10 @@ bool MainWindow::serverArgs(QStringList& args, QString& app) return false; } +#if Q_OS_WIN // wrap in quotes so a malicious user can't start \Program.exe as admin. app = QString("\"%1\"").arg(app); +#endif if (appConfig().logToFile()) {