Skip to content

Commit

Permalink
Bump SecureJarHandler (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte authored May 1, 2024
1 parent 61d78d0 commit 390b015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private static Map<String, String> getMergeFilenameMap() {

private record PackageTracker(Set<String> 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
Expand Down

0 comments on commit 390b015

Please sign in to comment.