Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
887ee0e8
Commit
887ee0e8
authored
May 22, 2012
by
Max-Wilhelm Bruker
Browse files
fixed server security issue concerning deck deletion
parent
0a30f22e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/serversocketinterface.cpp
View file @
887ee0e8
...
@@ -361,7 +361,7 @@ ResponseCode ServerSocketInterface::cmdDeckDelDir(Command_DeckDelDir *cmd, Comma
...
@@ -361,7 +361,7 @@ ResponseCode ServerSocketInterface::cmdDeckDelDir(Command_DeckDelDir *cmd, Comma
servatrice
->
checkSql
();
servatrice
->
checkSql
();
int
basePathId
=
getDeckPathId
(
cmd
->
getPath
());
int
basePathId
=
getDeckPathId
(
cmd
->
getPath
());
if
(
basePathId
==
-
1
)
if
(
(
basePathId
==
-
1
)
||
(
basePathId
==
0
))
return
RespNameNotFound
;
return
RespNameNotFound
;
deckDelDirHelper
(
basePathId
);
deckDelDirHelper
(
basePathId
);
return
RespOk
;
return
RespOk
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment