GH-734: block more java env variable holes.

This commit is contained in:
Petr Mrázek 2015-01-17 23:05:34 +01:00
parent 0be0e822e4
commit c6427caa9e

View File

@ -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);