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
Charles Krinke 2008-07-01 21:57:36 +00:00
parent f162f4544c
commit e4d68a8b64
1 changed files with 6 additions and 0 deletions

View File

@ -552,6 +552,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public string osGetScriptEngineName() public string osGetScriptEngineName()
{ {
if (!m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
{
OSSLError("osGetScriptEngineName: permission denied");
return "";
}
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
int scriptEngineNameIndex = 0; int scriptEngineNameIndex = 0;