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 8969779 commit ca8a0a1Copy full SHA for ca8a0a1
src/main/java/org/quiltmc/loader/impl/filesystem/QuiltBasePath.java
@@ -554,9 +554,17 @@ public URI toUri() {
554
return toAbsolutePath().toUri();
555
}
556
try {
557
- // Passing as one string ensures that Java goes ahead and normalizes everything for us
+ // Constructing as components ensures proper quoting on most
558
// Adding the port stores the important info in both the authority and host
559
- return new URI(fs.provider().getScheme() + "://" + fs.name + ":0" + this);
+ return new URI(
560
+ fs.provider().getScheme(),
561
+ null,
562
+ fs.name,
563
+ 0,
564
+ this.toString(),
565
566
+ null
567
+ ).normalize();
568
} catch (URISyntaxException e) {
569
throw new RuntimeException(e);
570
0 commit comments