Update MainController.java

bug修复
This commit is contained in:
0x421
2024-01-24 20:07:56 +08:00
committed by GitHub
parent 91ed3692b4
commit 3b58e539d6

View File

@@ -605,10 +605,10 @@ public class MainController {
URL myurl = new URL(jsurl);
String mypath = myurl.getPath();
String fileName = mypath.substring(mypath.lastIndexOf('/') + 1);
domain = jsurl.replace(fileName,"");
url = domain + interface_url;
String new_domain = jsurl.replace(fileName,"");
String new_url = new_domain + interface_url;
try {
url = Tools.normalizedURI(url);
url = Tools.normalizedURI(new_url);
} catch (URISyntaxException e) {
continue;
}
@@ -1024,4 +1024,4 @@ public class MainController {
}
}
}
}