GH-734: block more java env variable holes.
This commit is contained in:
parent
0be0e822e4
commit
c6427caa9e
@ -45,7 +45,17 @@ MinecraftProcess::MinecraftProcess(InstancePtr inst) : m_instance(inst)
|
||||
|
||||
QProcessEnvironment env;
|
||||
|
||||
QStringList ignored = {"JAVA_ARGS", "CLASSPATH", "CONFIGPATH", "JAVA_HOME", "JRE_HOME"};
|
||||
QStringList ignored =
|
||||
{
|
||||
"JAVA_ARGS",
|
||||
"CLASSPATH",
|
||||
"CONFIGPATH",
|
||||
"JAVA_HOME",
|
||||
"JRE_HOME",
|
||||
"_JAVA_OPTIONS",
|
||||
"JAVA_OPTIONS",
|
||||
"JAVA_TOOL_OPTIONS"
|
||||
};
|
||||
for(auto key: rawenv.keys())
|
||||
{
|
||||
auto value = rawenv.value(key);
|
||||
|
Loading…
Reference in New Issue
Block a user