fixed: quoted string doesn't work on mac

This commit is contained in:
Nick Bolton 2013-10-16 16:52:30 +00:00
parent 64c7a01ebb
commit 8c99a5f60d
1 changed files with 4 additions and 0 deletions

View File

@ -471,8 +471,10 @@ bool MainWindow::clientArgs(QStringList& args, QString& app)
return false; return false;
} }
#if Q_OS_WIN
// wrap in quotes so a malicious user can't start \Program.exe as admin. // wrap in quotes so a malicious user can't start \Program.exe as admin.
app = QString("\"%1\"").arg(app); app = QString("\"%1\"").arg(app);
#endif
if (m_pLineEditHostname->text().isEmpty()) if (m_pLineEditHostname->text().isEmpty())
{ {
@ -549,8 +551,10 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
return false; return false;
} }
#if Q_OS_WIN
// wrap in quotes so a malicious user can't start \Program.exe as admin. // wrap in quotes so a malicious user can't start \Program.exe as admin.
app = QString("\"%1\"").arg(app); app = QString("\"%1\"").arg(app);
#endif
if (appConfig().logToFile()) if (appConfig().logToFile())
{ {