-
Notifications
You must be signed in to change notification settings - Fork 375
Closed
Description
Extracting to a relative directory worked in 0.4.7, but now in 0.4.8 it causes an error.
var zip = new AdmZip("../lib/" + fileName);
zip.extractAllTo("../lib/" + dirName, true);
Looks like the code throwing the error is
if (!pth.resolve(targetPath, entryName).startsWith(targetPath)) {
throw Utils.Errors.INVALID_FILENAME + ": " + entryName;
}
What's happening is that pth.resolve() is returning a /full/path/to/the/entry, but it does not start with 'targetPath' since 'targetPath' is relative as shown above.
grnd, robertkazan and mportuga
Metadata
Metadata
Assignees
Labels
No labels