diff options
Diffstat (limited to 'src/common/util/Path.h')
-rw-r--r-- | src/common/util/Path.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util/Path.h b/src/common/util/Path.h index 6c6d54be..2fcf5774 100644 --- a/src/common/util/Path.h +++ b/src/common/util/Path.h @@ -76,6 +76,10 @@ public: assert(path.find_last_of("/") != string::npos); + // Double slash not allowed + if (path.find("//") != string::npos) + return false; + // All characters must be printable ASCII for (size_t i=0; i < path.length(); ++i) if (path.at(i) < 32 || path.at(i) > 126) |