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