Commit 2b89c353 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

merged security fix from master

parents 981db47f 887ee0e8
......@@ -443,8 +443,8 @@ Response::ResponseCode ServerSocketInterface::cmdDeckDelDir(const Command_DeckDe
servatrice->checkSql();
int basePathId = getDeckPathId(QString::fromStdString(cmd.path()));
if (basePathId == -1)
return Response::RespNameNotFound;
if ((basePathId == -1) || (basePathId == 0))
return RespNameNotFound;
deckDelDirHelper(basePathId);
return Response::RespOk;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment