CLOUD: Mark places where path handling is needed

This commit is contained in:
Alexander Tkachev 2016-08-01 13:19:16 +06:00
parent 126fe9c845
commit dd9e5a95dc
6 changed files with 18 additions and 0 deletions

View file

@ -127,6 +127,8 @@ void UploadFileClientHandler::handleBlockHeaders(Client *client) {
if (filename.empty())
return;
// TODO: handle <filename>, <path> + <filename>
// check that <path>/<filename> doesn't exist
Common::String path = _parentDirectoryPath;
if (path.lastChar() != '/' && path.lastChar() != '\\')