Skip to content

Commit

Permalink
Fix URI encoding problems in DefaultPackAdapter (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostflyby authored Nov 9, 2024
1 parent ecbc3e1 commit b8ba530
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static synchronized Iterator<String> walkFileSystems(Class<?> clz, FSCon
try {
// Decode the URL before passing it to the URI constructor so it isn't doubly encoded (which breaks
// reading files from folders with spaces)
uri = new URI("jar", URLDecoder.decode(url.toURI().toString(), "UTF-8"), null);
uri = new URI("jar:" + url.toString());
boolean needClose = false;
FileSystem fs;
try {
Expand Down

0 comments on commit b8ba530

Please sign in to comment.