mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-13 13:37:36 -08:00
merged security fix from master
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user