1
0
Fork 0
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:
swagtoy 2024-09-30 16:41:53 -04:00 committed by GitHub
parent bca44574d5
commit c6fc694ea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 9 deletions

View file

@ -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")) {