From e4d68a8b64abb5a6d7700392c8ead7fd5073aca9 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Tue, 1 Jul 2008 21:57:36 +0000 Subject: 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. --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 5414b95..3e1c930 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -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; -- cgit v1.1