mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* Patch from Melanie provides Util.CleanString and uses it on the prim name and description. Thanks Melanie.
This commit is contained in:
@@ -749,7 +749,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
if (PermissionsMngr.CanEditObject(remoteClient.AgentId, group.UUID))
|
||||
{
|
||||
group.SetPartName(name, primLocalID);
|
||||
group.SetPartName(Util.CleanString(name), primLocalID);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -766,7 +766,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
if (PermissionsMngr.CanEditObject(remoteClient.AgentId, group.UUID))
|
||||
{
|
||||
group.SetPartDescription(description.Replace("\0",""), primLocalID);
|
||||
group.SetPartDescription(Util.CleanString(description), primLocalID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1086,7 +1086,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="name"></param>
|
||||
public void SetPartName(string name, uint localID)
|
||||
{
|
||||
name = name.Remove(name.Length - 1, 1);
|
||||
SceneObjectPart part = GetChildPart(localID);
|
||||
if (part != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user