1
0
mirror of https://github.com/crskycode/GARbro.git synced 2025-01-14 05:43:53 +08:00

(FileSystemStack.ChDir): directory traversal fixes.

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

@ -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
{