From d900d0112dc78850a1406907e0b7ef70cdc91cb5 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 2 Oct 2015 18:55:09 +0100 Subject: [PATCH] put back ip check on llSetContentType --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0649a6a2ac..ba41499105 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -1929,8 +1929,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (userAgent.IndexOf("SecondLife") < 0) return; // Not the embedded browser. Is this check good enough? -/* script owner alts are not script owners - and diferent persons can show us the same ip // Use the IP address of the client and check against the request // seperate logins from the same IP will allow all of them to get non-text/plain as long // as the owner is in the region. Same as SL! @@ -1945,7 +1943,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // If the request isnt from the same IP address then the request cannot be from the owner if (!requestFromIPAddress.Trim().Equals(logonFromIPAddress.Trim())) return; -*/ + switch (type) { case ScriptBaseClass.CONTENT_TYPE_HTML: