Prevent an overlong description from messing up a ParcelInfoReply
parent
6fbc48ee9c
commit
dac826da4e
|
@ -2766,7 +2766,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
reply.Data.ParcelID = parcelID;
|
reply.Data.ParcelID = parcelID;
|
||||||
reply.Data.OwnerID = land.OwnerID;
|
reply.Data.OwnerID = land.OwnerID;
|
||||||
reply.Data.Name = Utils.StringToBytes(land.Name);
|
reply.Data.Name = Utils.StringToBytes(land.Name);
|
||||||
reply.Data.Desc = Utils.StringToBytes(land.Description);
|
reply.Data.Desc = Utils.StringToBytes(land.Description.Substring(0, land.Description.Length > 254 ? 254: land.Description.Length));
|
||||||
reply.Data.ActualArea = land.Area;
|
reply.Data.ActualArea = land.Area;
|
||||||
reply.Data.BillableArea = land.Area; // TODO: what is this?
|
reply.Data.BillableArea = land.Area; // TODO: what is this?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue