diff options
author | Melanie Thielker | 2010-06-02 01:04:17 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-06-02 01:04:17 +0200 |
commit | 70aa965c2678f91e45986f50a89588339a904f04 (patch) | |
tree | 29043933c91ae970a7d20b910987584e6807a89c /OpenSim/Region | |
parent | Add two new osFunctions: (diff) | |
download | opensim-SC-70aa965c2678f91e45986f50a89588339a904f04.zip opensim-SC-70aa965c2678f91e45986f50a89588339a904f04.tar.gz opensim-SC-70aa965c2678f91e45986f50a89588339a904f04.tar.bz2 opensim-SC-70aa965c2678f91e45986f50a89588339a904f04.tar.xz |
Add a forgotten security check. Make the new functions only work on prims
owned by the host prim owner.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
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 481a3e6..3c2ef34 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -10268,6 +10268,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10268 | if (obj == null) | 10268 | if (obj == null) |
10269 | return; | 10269 | return; |
10270 | 10270 | ||
10271 | if (obj.OwnerID != m_host.OwnerID) | ||
10272 | return; | ||
10273 | |||
10271 | SetPrimParams(obj, rules); | 10274 | SetPrimParams(obj, rules); |
10272 | } | 10275 | } |
10273 | 10276 | ||
@@ -10277,6 +10280,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10277 | if (obj == null) | 10280 | if (obj == null) |
10278 | return new LSL_List(); | 10281 | return new LSL_List(); |
10279 | 10282 | ||
10283 | if (obj.OwnerID != m_host.OwnerID) | ||
10284 | return new LSL_List(); | ||
10285 | |||
10280 | return GetLinkPrimitiveParams(obj, rules); | 10286 | return GetLinkPrimitiveParams(obj, rules); |
10281 | } | 10287 | } |
10282 | } | 10288 | } |