diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-01-13 21:53:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-01-13 21:53:34 +0300 |
commit | 1b9913feb9541fc8a013b372bab1f77f4f9aca73 (patch) | |
tree | 5b3d16840b7891ef10eb0dd5830f5a60e079a051 | |
parent | ae8016341191c2db74a23aa59cb2cefa7b3ddfd7 (diff) | |
download | manaplus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.tar.gz manaplus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.tar.bz2 manaplus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.tar.xz manaplus-1b9913feb9541fc8a013b372bab1f77f4f9aca73.zip |
Dont allow "(unreachable)" in update files paths.
-rw-r--r-- | src/fs/paths.cpp | 3 |
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) |