Skip to content

Commit

Permalink
Fix #47
Browse files Browse the repository at this point in the history
Co-authored-by: Marco <>
Co-authored-by: César Soto Valero <[email protected]>
  • Loading branch information
mtorres10 and cesarsotovalero authored Mar 18, 2021
1 parent c4daf6e commit 6079beb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ private static void decompressJarFile(String destDirectory, String jarFilePath)
String filePath = destDirectory + File.separator + entry.getName();
if (!entry.isDirectory()) {
new File(filePath).getParentFile().mkdirs(); //NOSONAR Triggers a false warning of path traversal attack
// if the entry is a file, extracts it
extractFile(jarIn, filePath);
try {
// if the entry is a file, extracts it
extractFile(jarIn, filePath);
} catch (IOException e) {
log.warn("Could not extract file: " + filePath + " from jar " + jarFilePath);
}
}
jarIn.closeEntry();
entry = jarIn.getNextJarEntry();
Expand Down

0 comments on commit 6079beb

Please sign in to comment.