mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Correct filter
This commit is contained in:
parent
624fd38188
commit
d3daa51486
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue