mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix deletePathFromFilename returning cutoff filenames (#15211)
This commit is contained in:
parent
bca44574d5
commit
c6fc694ea6
3 changed files with 7 additions and 9 deletions
|
@ -191,8 +191,7 @@ bool CZipReader::scanGZipHeader()
|
|||
}
|
||||
} else {
|
||||
// no file name?
|
||||
ZipFileName = Path;
|
||||
core::deletePathFromFilename(ZipFileName);
|
||||
ZipFileName = core::deletePathFromFilename(Path);
|
||||
|
||||
// rename tgz to tar or remove gz extension
|
||||
if (core::hasFileExtension(ZipFileName, "tgz")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue