From 390b01574c547344815a97cf3bb3a9da2a4eab94 Mon Sep 17 00:00:00 2001 From: shartte Date: Wed, 1 May 2024 20:27:46 +0200 Subject: [PATCH] Bump SecureJarHandler (#15) --- build.gradle | 2 +- src/main/java/cpw/mods/bootstraplauncher/BootstrapLauncher.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e091f1e..87ce2ef 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ repositories { dependencies { compileOnly('org.jetbrains:annotations:24.0.1') - implementation('cpw.mods:securejarhandler:2.1.27') + implementation('cpw.mods:securejarhandler:3.0.4') } java { diff --git a/src/main/java/cpw/mods/bootstraplauncher/BootstrapLauncher.java b/src/main/java/cpw/mods/bootstraplauncher/BootstrapLauncher.java index 08927f7..9850071 100644 --- a/src/main/java/cpw/mods/bootstraplauncher/BootstrapLauncher.java +++ b/src/main/java/cpw/mods/bootstraplauncher/BootstrapLauncher.java @@ -199,7 +199,7 @@ private static Map getMergeFilenameMap() { private record PackageTracker(Set packages, Path... paths) implements UnionPathFilter { @Override - public boolean test(final String path, final String basePath) { + public boolean test(final String path, final Path basePath) { // This method returns true if the given path is allowed within the JAR (filters out 'bad' paths) if (packages.isEmpty() || // This is the first jar, nothing is claimed yet, so allow everything