aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2010-09-27 00:29:27 +0100
committerMelanie2010-09-27 00:30:26 +0100
commit1f7d68e555bc927bb72028e149902b6b9aac40b8 (patch)
treed398a9deb86d22e713712e48df3959796acc8c0d /OpenSim/Region/Framework
parentWhen receiving intersim IM, don't let the spoof protection bomb (diff)
downloadopensim-SC_OLD-1f7d68e555bc927bb72028e149902b6b9aac40b8.zip
opensim-SC_OLD-1f7d68e555bc927bb72028e149902b6b9aac40b8.tar.gz
opensim-SC_OLD-1f7d68e555bc927bb72028e149902b6b9aac40b8.tar.bz2
opensim-SC_OLD-1f7d68e555bc927bb72028e149902b6b9aac40b8.tar.xz
Restrict inventory items added in a transaction to folder belonging
to the connected client.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index d3a1447..1bf6b87 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -832,6 +832,12 @@ namespace OpenSim.Region.Framework.Scenes
832 if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId)) 832 if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId))
833 return; 833 return;
834 834
835 InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId);
836 InventoryFolderBase folder = InventoryService.GetFolder(f);
837
838 if (folder == null || folder.Owner != remoteClient.AgentId)
839 return;
840
835 if (transactionID == UUID.Zero) 841 if (transactionID == UUID.Zero)
836 { 842 {
837 ScenePresence presence; 843 ScenePresence presence;