Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/jruby/util/URLResource.java
Original file line number Diff line number Diff line change
@@ -179,7 +179,8 @@ public static FileResource create(Ruby runtime, String pathname)
if (!pathname.startsWith(URI)) {
return null;
}
pathname = pathname.substring(URI.length());
// GH-2005 needs the replace
pathname = pathname.substring(URI.length()).replace("\\", "/");
if (pathname.startsWith(CLASSLOADER)) {
return createClassloaderURI(runtime, pathname.substring(CLASSLOADER.length()));
}

0 comments on commit c36be6b

Please sign in to comment.