mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue