aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs1
2 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 5ad5646..794cdae 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -749,7 +749,7 @@ namespace OpenSim.Region.Environment.Scenes
749 { 749 {
750 if (PermissionsMngr.CanEditObject(remoteClient.AgentId, group.UUID)) 750 if (PermissionsMngr.CanEditObject(remoteClient.AgentId, group.UUID))
751 { 751 {
752 group.SetPartName(name, primLocalID); 752 group.SetPartName(Util.CleanString(name), primLocalID);
753 } 753 }
754 } 754 }
755 } 755 }
@@ -766,7 +766,7 @@ namespace OpenSim.Region.Environment.Scenes
766 { 766 {
767 if (PermissionsMngr.CanEditObject(remoteClient.AgentId, group.UUID)) 767 if (PermissionsMngr.CanEditObject(remoteClient.AgentId, group.UUID))
768 { 768 {
769 group.SetPartDescription(description.Replace("\0",""), primLocalID); 769 group.SetPartDescription(Util.CleanString(description), primLocalID);
770 } 770 }
771 } 771 }
772 } 772 }
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index d3f5454..0f8ce0b 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -1086,7 +1086,6 @@ namespace OpenSim.Region.Environment.Scenes
1086 /// <param name="name"></param> 1086 /// <param name="name"></param>
1087 public void SetPartName(string name, uint localID) 1087 public void SetPartName(string name, uint localID)
1088 { 1088 {
1089 name = name.Remove(name.Length - 1, 1);
1090 SceneObjectPart part = GetChildPart(localID); 1089 SceneObjectPart part = GetChildPart(localID);
1091 if (part != null) 1090 if (part != null)
1092 { 1091 {