mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: Zip - check that filename is really in UTF-8 encoding
This commit is contained in:
parent
c81dbf0ae6
commit
2e39b62ca4
1 changed files with 1 additions and 1 deletions
|
|
@ -1484,7 +1484,7 @@ begin
|
|||
FItemInfo.LoadFromStream( Stream );
|
||||
|
||||
{ decode filename (ANSI/OEM/UTF-8) }
|
||||
if FItemInfo.IsUTF8 then
|
||||
if FItemInfo.IsUTF8 and (FindInvalidUTF8Character(PAnsiChar(FItemInfo.FileName), Length(FItemInfo.FileName)) < 0) then
|
||||
FFileName := FItemInfo.FileName
|
||||
else if FItemInfo.ExtraField.Get(Ab_InfoZipUnicodePathSubfieldID, Pointer(InfoZipField), FieldSize) and
|
||||
(FieldSize > SizeOf(TInfoZipUnicodePathRec)) and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue