summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-01-13 21:53:34 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-13 21:53:34 +0300
commit1b9913feb9541fc8a013b372bab1f77f4f9aca73 (patch)
tree5b3d16840b7891ef10eb0dd5830f5a60e079a051 /src
parentae8016341191c2db74a23aa59cb2cefa7b3ddfd7 (diff)
downloadplus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.tar.gz
plus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.tar.bz2
plus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.tar.xz
plus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.zip
Dont allow "(unreachable)" in update files paths.
Diffstat (limited to 'src')
-rw-r--r--src/fs/paths.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/paths.cpp b/src/fs/paths.cpp
index 4c93bd755..31052b7bb 100644
--- a/src/fs/paths.cpp
+++ b/src/fs/paths.cpp
@@ -106,7 +106,8 @@ bool checkPath(const std::string &path)
return path.find("../") == std::string::npos
&& path.find("..\\") == std::string::npos
&& path.find("/..") == std::string::npos
- && path.find("\\..") == std::string::npos;
+ && path.find("\\..") == std::string::npos
+ && path.find("(unreachable)") == std::string::npos;
}
void prepareFsPath(std::string &path)