From 83bd85ce7fed09be34df870dd6473c123e592744 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 29 May 2008 16:21:41 +0000 Subject: * Fix string literal with URL + LLcommand(); * Added 'detected around: value' when a x.Y detect occurs to help debug. * Fixed object text is too long to store to the database (wikilith) --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 9 ++++++++- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 10 +++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 47a239a..94d888c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -270,7 +270,14 @@ namespace OpenSim.Region.Environment.Scenes public string Text { - get { return m_rootPart.Text; } + get { + string returnstr = m_rootPart.Text; + if (returnstr.Length > 255) + { + returnstr = returnstr.Substring(0, 255); + } + return returnstr; + } set { m_rootPart.Text = value; } } diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 9afffbe..de5da40 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -585,7 +585,15 @@ namespace OpenSim.Region.Environment.Scenes public string Text { - get { return m_text; } + get + { + string returnstr = m_text; + if (returnstr.Length > 255) + { + returnstr = returnstr.Substring(0, 254); + } + return returnstr; + } set { m_text = value; -- cgit v1.1