We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329bad2 commit f0aaf44Copy full SHA for f0aaf44
core/src/main/java/org/jruby/util/JarResource.java
@@ -24,6 +24,10 @@ public static JarResource create(String pathname) {
24
// since pathname is actually an uri we need to decode any url decoded characters like %20
25
// which happens when directory names contain spaces
26
sanitized = URLDecoder.decode(sanitized, "UTF-8");
27
+ } catch (IllegalArgumentException iae) {
28
+ // something in the path did not decode, so it's probably not a URI
29
+ // See jruby/jruby#2264.
30
+ return null;
31
} catch (UnsupportedEncodingException e) {
32
throw new RuntimeException( "hmm - system does not know UTF-8 string encoding :(" );
33
}
0 commit comments