aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorMelanie Thielker2010-06-02 01:04:17 +0200
committerMelanie2010-06-02 01:21:55 +0100
commitaa5a346a68415971a294af73c20d57a1fcd32c05 (patch)
tree9302888ba00e69c5109325ea4f8655f2cec82abc /OpenSim/Region/ScriptEngine
parentAdd two new osFunctions: (diff)
downloadopensim-SC-aa5a346a68415971a294af73c20d57a1fcd32c05.zip
opensim-SC-aa5a346a68415971a294af73c20d57a1fcd32c05.tar.gz
opensim-SC-aa5a346a68415971a294af73c20d57a1fcd32c05.tar.bz2
opensim-SC-aa5a346a68415971a294af73c20d57a1fcd32c05.tar.xz
Add a forgotten security check. Make the new functions only work on prims
owned by the host prim owner.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index a8a3595..5400a4f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -9795,6 +9795,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9795 if (obj == null) 9795 if (obj == null)
9796 return; 9796 return;
9797 9797
9798 if (obj.OwnerID != m_host.OwnerID)
9799 return;
9800
9798 SetPrimParams(obj, rules); 9801 SetPrimParams(obj, rules);
9799 } 9802 }
9800 9803
@@ -9804,6 +9807,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9804 if (obj == null) 9807 if (obj == null)
9805 return new LSL_List(); 9808 return new LSL_List();
9806 9809
9810 if (obj.OwnerID != m_host.OwnerID)
9811 return new LSL_List();
9812
9807 return GetLinkPrimitiveParams(obj, rules); 9813 return GetLinkPrimitiveParams(obj, rules);
9808 } 9814 }
9809 } 9815 }