mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
change asset description max size
This commit is contained in:
@@ -170,6 +170,14 @@ namespace OpenSim.Data.MySQL
|
||||
}
|
||||
|
||||
string assetDescription = asset.Description;
|
||||
if(assetDescription.Length > AssetBase.MAX_LMASSET_DESC)
|
||||
{
|
||||
if(asset.Type == (sbyte) AssetType.Landmark)
|
||||
assetDescription = assetDescription.Substring(0, AssetBase.MAX_LMASSET_DESC);
|
||||
else
|
||||
assetDescription = assetDescription.Substring(0, AssetBase.MAX_ASSET_DESC);
|
||||
}
|
||||
|
||||
if (asset.Description.Length > AssetBase.MAX_ASSET_DESC)
|
||||
{
|
||||
assetDescription = asset.Description.Substring(0, AssetBase.MAX_ASSET_DESC);
|
||||
|
||||
Reference in New Issue
Block a user