From d3daa51486f4629e38ca69a2cf79301d213dda05 Mon Sep 17 00:00:00 2001 From: def Date: Fri, 16 Jun 2017 22:19:36 +0200 Subject: [PATCH] Correct filter --- src/engine/shared/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/shared/storage.cpp b/src/engine/shared/storage.cpp index 6feffbeec..29cac81eb 100644 --- a/src/engine/shared/storage.cpp +++ b/src/engine/shared/storage.cpp @@ -280,7 +280,7 @@ public: BufferSize = sizeof(aBuffer); } - if(pFilename[0] == '/' || pFilename[0] == '\\' || !str_comp(pFilename, "..")) + if(pFilename[0] == '/' || pFilename[0] == '\\' || (pFilename[0] == '.' && pFilename[1] == '.' && (pFilename[2] == '/' || pFilename[2] == '\\'))) { // don't escape base directory }