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 ...@@ -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;
} }
......
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