Checking if the command is not an empty string.

This commit is contained in:
Caio Carvalho 2018-08-16 18:59:47 +02:00
parent e743156888
commit 6c703e122a
1 changed files with 5 additions and 0 deletions

View File

@ -267,6 +267,11 @@ QVariantMap ExternalCommandHelper::start(const QByteArray& signature, const quin
return reply;
}
if (command.isEmpty()) {
reply[QStringLiteral("success")] = false;
return reply;
}
QByteArray request;
request.setNum(nonce);
request.append(command.toUtf8());