mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-01 19:13:58 +01:00
AppletLoader: fix JVM bug where '!' is not escaped on the URL, thanks to NateS for spotting it and special thanks to MatthiasM for the fix.
This commit is contained in:
parent
b3fdb66a3f
commit
7023a35bac
|
|
@ -1009,7 +1009,10 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
URL[] urls = new URL[urlList.length];
|
||||
|
||||
for (int i = 0; i < urlList.length; i++) {
|
||||
urls[i] = new URL("file:" + path + getJarName(urlList[i]));
|
||||
String file = new File(path, getJarName(urlList[i])).toURI().toString();
|
||||
// fix JVM bug where ! is not escaped
|
||||
file = file.replaceAll("!", "%21");
|
||||
urls[i] = new URL(file);
|
||||
}
|
||||
|
||||
// add downloaded jars to the classpath with required permissions
|
||||
|
|
|
|||
Loading…
Reference in a new issue