aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-07-24 19:35:16 +0000
committerJustin Clarke Casey2009-07-24 19:35:16 +0000
commitde893a4a10bc7296ac540deca03c3e986ced8b9e (patch)
tree1feb5dc0f590e1b234a6f00afe2c2408b8e74ac5 /OpenSim/Data/MSSQL/MSSQLInventoryData.cs
parent* Apply similar bounds checks on name and description fields on MSSQL UpdateA... (diff)
downloadopensim-SC-de893a4a10bc7296ac540deca03c3e986ced8b9e.zip
opensim-SC-de893a4a10bc7296ac540deca03c3e986ced8b9e.tar.gz
opensim-SC-de893a4a10bc7296ac540deca03c3e986ced8b9e.tar.bz2
opensim-SC-de893a4a10bc7296ac540deca03c3e986ced8b9e.tar.xz
* Correct minor bug where item description bounded string was not actually being used in the previous patches.
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLInventoryData.cs')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLInventoryData.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
index eb90192..f68253a 100644
--- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs
@@ -412,6 +412,7 @@ namespace OpenSim.Data.MSSQL
412 @inventoryNextPermissions, @inventoryCurrentPermissions, @invType, @creatorID, 412 @inventoryNextPermissions, @inventoryCurrentPermissions, @invType, @creatorID,
413 @inventoryBasePermissions, @inventoryEveryOnePermissions, @inventoryGroupPermissions, @salePrice, @saleType, 413 @inventoryBasePermissions, @inventoryEveryOnePermissions, @inventoryGroupPermissions, @salePrice, @saleType,
414 @creationDate, @groupID, @groupOwned, @flags)"; 414 @creationDate, @groupID, @groupOwned, @flags)";
415
415 string itemName = item.Name; 416 string itemName = item.Name;
416 if (item.Name.Length > 64) 417 if (item.Name.Length > 64)
417 { 418 {
@@ -432,7 +433,7 @@ namespace OpenSim.Data.MSSQL
432 command.Parameters.Add(database.CreateParameter("parentFolderID", item.Folder)); 433 command.Parameters.Add(database.CreateParameter("parentFolderID", item.Folder));
433 command.Parameters.Add(database.CreateParameter("avatarID", item.Owner)); 434 command.Parameters.Add(database.CreateParameter("avatarID", item.Owner));
434 command.Parameters.Add(database.CreateParameter("inventoryName", itemName)); 435 command.Parameters.Add(database.CreateParameter("inventoryName", itemName));
435 command.Parameters.Add(database.CreateParameter("inventoryDescription", item.Description)); 436 command.Parameters.Add(database.CreateParameter("inventoryDescription", itemDesc));
436 command.Parameters.Add(database.CreateParameter("inventoryNextPermissions", item.NextPermissions)); 437 command.Parameters.Add(database.CreateParameter("inventoryNextPermissions", item.NextPermissions));
437 command.Parameters.Add(database.CreateParameter("inventoryCurrentPermissions", item.CurrentPermissions)); 438 command.Parameters.Add(database.CreateParameter("inventoryCurrentPermissions", item.CurrentPermissions));
438 command.Parameters.Add(database.CreateParameter("invType", item.InvType)); 439 command.Parameters.Add(database.CreateParameter("invType", item.InvType));