Skip to content

Commit c6966fd

Browse files
committed
small fix to extract sub URL from Jar URL
1 parent 81b2169 commit c6966fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/api/ElasticsearchEntitlementChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ private URL extractJarFileUrl(URL jarUrl) {
656656
}
657657

658658
try {
659-
return new URL(spec.substring(0, separator + 1));
659+
return new URL(spec.substring(0, separator));
660660
} catch (MalformedURLException e) {
661661
return null;
662662
}

0 commit comments

Comments
 (0)