Mantis#1643. Thank you Melanie for a patch that:
In the new runtime, there is a flag to diable all os* comamnds. The implementation of osGetScriptEngineName ignored it. This patch fixes this.0.6.0-stable
parent
f162f4544c
commit
e4d68a8b64
|
@ -552,6 +552,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
|
||||
public string osGetScriptEngineName()
|
||||
{
|
||||
if (!m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
|
||||
{
|
||||
OSSLError("osGetScriptEngineName: permission denied");
|
||||
return "";
|
||||
}
|
||||
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
int scriptEngineNameIndex = 0;
|
||||
|
|
Loading…
Reference in New Issue