merged security fix from master
This commit is contained in:
commit
2b89c353bf
1 changed files with 2 additions and 2 deletions
|
@ -443,8 +443,8 @@ Response::ResponseCode ServerSocketInterface::cmdDeckDelDir(const Command_DeckDe
|
||||||
servatrice->checkSql();
|
servatrice->checkSql();
|
||||||
|
|
||||||
int basePathId = getDeckPathId(QString::fromStdString(cmd.path()));
|
int basePathId = getDeckPathId(QString::fromStdString(cmd.path()));
|
||||||
if (basePathId == -1)
|
if ((basePathId == -1) || (basePathId == 0))
|
||||||
return Response::RespNameNotFound;
|
return RespNameNotFound;
|
||||||
deckDelDirHelper(basePathId);
|
deckDelDirHelper(basePathId);
|
||||||
return Response::RespOk;
|
return Response::RespOk;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue