mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Extract filenames with forbidden characters from archives #2
This commit is contained in:
parent
bb480107ca
commit
c2ef2d71d2
1 changed files with 2 additions and 0 deletions
|
|
@ -417,6 +417,7 @@ begin
|
|||
if FPS_ISDIR(Header.FileAttr) then
|
||||
begin
|
||||
CurrentFileName := ExtractDirLevel(CurrentArchiveDir, Header.FileName);
|
||||
CurrentFileName := ReplaceInvalidChars(CurrentFileName);
|
||||
|
||||
// Save this directory and a pointer to its entry.
|
||||
DirsAttributes.Add(CurrentFileName, Header);
|
||||
|
|
@ -440,6 +441,7 @@ begin
|
|||
Inc(FStatistics.TotalFiles, 1);
|
||||
|
||||
CurrentFileName := ExtractDirLevel(CurrentArchiveDir, ExtractFilePathEx(Header.FileName));
|
||||
CurrentFileName := ReplaceInvalidChars(CurrentFileName);
|
||||
|
||||
// If CurrentFileName is empty now then it was a file in current archive
|
||||
// directory, therefore we don't have to create any paths for it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue