From 6ebd6c0f16cf15bb455b81ca571ef88bac381655 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Feb 2017 00:54:28 +0300 Subject: Add path sanitization in virtfsdir. --- src/fs/paths.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fs/paths.h') diff --git a/src/fs/paths.h b/src/fs/paths.h index 48a6eeea8..be431f9c3 100644 --- a/src/fs/paths.h +++ b/src/fs/paths.h @@ -31,6 +31,8 @@ bool isRealPath(const std::string &str) A_WARN_UNUSED; bool checkPath(const std::string &path) A_WARN_UNUSED; +void prepareFsPath(std::string &path); + std::string &fixDirSeparators(std::string &str); std::string removeLast(const std::string &str) A_WARN_UNUSED; -- cgit v1.2.3-70-g09d2