fixed: quoted string doesn't work on mac
This commit is contained in:
parent
64c7a01ebb
commit
8c99a5f60d
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue