mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-14 22:03:56 +08:00
(FileSystemStack.ChDir): directory traversal fixes.
This commit is contained in:
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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user