aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/networking/sdl_net/handlerutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/networking/sdl_net/handlerutils.cpp b/backends/networking/sdl_net/handlerutils.cpp
index f0c62d330a..dc21ab5ce1 100644
--- a/backends/networking/sdl_net/handlerutils.cpp
+++ b/backends/networking/sdl_net/handlerutils.cpp
@@ -125,7 +125,7 @@ Common::String HandlerUtils::normalizePath(const Common::String &path) {
}
bool HandlerUtils::hasForbiddenCombinations(const Common::String &path) {
- return (path.contains("../") || path.contains("..\\"));
+ return (path.contains("/../") || path.contains("\\..\\") || path.contains("\\../") || path.contains("/..\\"));
}
bool HandlerUtils::isBlacklisted(const Common::String &path) {