Skip to content

Commit

Permalink
Fix CodeQL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
worldwise001 committed Aug 18, 2024
1 parent f73e971 commit 6efb8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sh/shh/midi/roland/BlobExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void extract(JarFile jarFile, String jarEntryName, File outputDir) {
throw new NoSuchFileException(outputDir.getPath());
}
JarEntry jarEntry = jarFile.getJarEntry(jarEntryName);
Matcher matcher = REGEX.matcher(jarEntryName);
Matcher matcher = REGEX.matcher(Path.of(jarEntryName).normalize().toString());
matcher.find();
String extractedFileName = Path.of(matcher.group(1)).normalize().toString();
File outputFile = new File(outputDir, extractedFileName);
Expand Down

0 comments on commit 6efb8d3

Please sign in to comment.