mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-06-06 13:39:09 +08:00
(FileSystemStack.ChDir): directory traversal fixes.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user