Fix script whitelist
This commit is contained in:
@@ -12,7 +12,7 @@ import org.mozilla.javascript.*;
|
|||||||
public class Scripts implements Disposable{
|
public class Scripts implements Disposable{
|
||||||
private final Array<String> blacklist = Array.with("net", "files", "reflect", "javax", "rhino", "file", "channels", "jdk",
|
private final Array<String> blacklist = Array.with("net", "files", "reflect", "javax", "rhino", "file", "channels", "jdk",
|
||||||
"runtime", "util.os", "rmi", "security", "org.", "sun.", "beans", "sql", "http", "exec", "compiler", "process", "system",
|
"runtime", "util.os", "rmi", "security", "org.", "sun.", "beans", "sql", "http", "exec", "compiler", "process", "system",
|
||||||
".awt", "socket", "mod.scripts", "classloader", "oracle");
|
".awt", "socket", "classloader", "oracle");
|
||||||
private final Array<String> whitelist = Array.with("mindustry.net");
|
private final Array<String> whitelist = Array.with("mindustry.net");
|
||||||
private final Context context;
|
private final Context context;
|
||||||
private final String wrapper;
|
private final String wrapper;
|
||||||
|
|||||||
Reference in New Issue
Block a user