(FileSystemStack.ChDir): directory traversal fixes.

This commit is contained in:
morkt 2015-09-02 04:12:38 +04:00
parent 8105d7c59f
commit 047d07f376

View File

@ -422,6 +422,10 @@ namespace GameRes
if (Count > 1 && ".." == entry.Name && string.IsNullOrEmpty (Top.CurrentDirectory))
{
Pop();
if (!string.IsNullOrEmpty (LastVisitedPath))
{
Top.CurrentDirectory = Path.GetDirectoryName (LastVisitedPath);
}
}
else
{