aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/AssetBase.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-11-22 01:34:07 +0000
committerUbitUmarov2016-11-22 01:34:07 +0000
commit7524c7729f820a510278a712e658b0865f83d079 (patch)
tree2907caa39b1f35e34730836067c6b8708527c478 /OpenSim/Framework/AssetBase.cs
parentremove a wrong virtual dec ( no overides, and cant really have if used on a c... (diff)
downloadopensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.zip
opensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.tar.gz
opensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.tar.bz2
opensim-SC_OLD-7524c7729f820a510278a712e658b0865f83d079.tar.xz
change asset description max size
Diffstat (limited to 'OpenSim/Framework/AssetBase.cs')
-rw-r--r--OpenSim/Framework/AssetBase.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs
index 87fd04a..67239ec 100644
--- a/OpenSim/Framework/AssetBase.cs
+++ b/OpenSim/Framework/AssetBase.cs
@@ -51,7 +51,8 @@ namespace OpenSim.Framework
51 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 51 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
52 52
53 public static readonly int MAX_ASSET_NAME = 64; 53 public static readonly int MAX_ASSET_NAME = 64;
54 public static readonly int MAX_ASSET_DESC = 64; 54 public static readonly int MAX_ASSET_DESC = 127;
55 public static readonly int MAX_LMASSET_DESC = 255;
55 56
56 /// <summary> 57 /// <summary>
57 /// Data of the Asset 58 /// Data of the Asset
@@ -305,7 +306,18 @@ namespace OpenSim.Framework
305 public string Description 306 public string Description
306 { 307 {
307 get { return m_description; } 308 get { return m_description; }
308 set { m_description = value; } 309 set
310 {
311 if(value.Length > AssetBase.MAX_LMASSET_DESC)
312 {
313 if(m_type == (sbyte) AssetType.Landmark)
314 m_description = value.Substring(0, AssetBase.MAX_LMASSET_DESC);
315 else
316 m_description = value.Substring(0, AssetBase.MAX_ASSET_DESC);
317 }
318 else
319 m_description = value;
320 }
309 } 321 }
310 322
311 public DateTime CreationDate 323 public DateTime CreationDate