Unconditionally set the slam bit oon all object to agent inventory transfers.

Closes a possible exploit with prims containing other prims
0.6.1-post-fixes
Melanie Thielker 2008-11-27 03:56:21 +00:00
parent d9c05a6def
commit 714ca971d6
1 changed files with 1 additions and 1 deletions

View File

@ -975,7 +975,7 @@ namespace OpenSim.Region.Environment.Scenes
agentItem.InvType = taskItem.InvType; agentItem.InvType = taskItem.InvType;
agentItem.Flags = taskItem.Flags; agentItem.Flags = taskItem.Flags;
if ((destAgent != taskItem.OwnerID) && Permissions.PropagatePermissions()) if (Permissions.PropagatePermissions())
{ {
agentItem.BasePermissions = taskItem.NextPermissions; agentItem.BasePermissions = taskItem.NextPermissions;
agentItem.CurrentPermissions = taskItem.NextPermissions | 8; agentItem.CurrentPermissions = taskItem.NextPermissions | 8;