diff options
author | Tom Grimshaw | 2010-06-27 22:23:08 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-06-27 22:23:08 -0700 |
commit | 7807d118073fc3e82272e27eba8268d24e2a1f5d (patch) | |
tree | d97d0a899f22d1707e38f96f61a0d40a9e7c4ace /OpenSim/Data/SQLite | |
parent | Fix the sound issue. It was caused by missing assets; once the client has mad... (diff) | |
parent | Change the way IRegionModule us referenced by IEmailModule to (diff) | |
download | opensim-SC-7807d118073fc3e82272e27eba8268d24e2a1f5d.zip opensim-SC-7807d118073fc3e82272e27eba8268d24e2a1f5d.tar.gz opensim-SC-7807d118073fc3e82272e27eba8268d24e2a1f5d.tar.bz2 opensim-SC-7807d118073fc3e82272e27eba8268d24e2a1f5d.tar.xz |
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteXInventoryData.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs index 6064538..ca651e1 100644 --- a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs +++ b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs | |||
@@ -66,11 +66,19 @@ namespace OpenSim.Data.SQLite | |||
66 | 66 | ||
67 | public bool StoreFolder(XInventoryFolder folder) | 67 | public bool StoreFolder(XInventoryFolder folder) |
68 | { | 68 | { |
69 | if (folder.folderName.Length > 64) | ||
70 | folder.folderName = folder.folderName.Substring(0, 64); | ||
71 | |||
69 | return m_Folders.Store(folder); | 72 | return m_Folders.Store(folder); |
70 | } | 73 | } |
71 | 74 | ||
72 | public bool StoreItem(XInventoryItem item) | 75 | public bool StoreItem(XInventoryItem item) |
73 | { | 76 | { |
77 | if (item.inventoryName.Length > 64) | ||
78 | item.inventoryName = item.inventoryName.Substring(0, 64); | ||
79 | if (item.inventoryDescription.Length > 128) | ||
80 | item.inventoryDescription = item.inventoryDescription.Substring(0, 128); | ||
81 | |||
74 | return m_Items.Store(item); | 82 | return m_Items.Store(item); |
75 | } | 83 | } |
76 | 84 | ||