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 }