mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user