Correct filter

This commit is contained in:
def 2017-06-16 22:19:36 +02:00
parent 624fd38188
commit d3daa51486

View file

@ -280,7 +280,7 @@ public:
BufferSize = sizeof(aBuffer); 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 // don't escape base directory
} }