aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorMelanie2011-10-31 10:18:25 +0100
committerMelanie2011-10-31 11:11:36 +0000
commita9a24062a5622350cd26203f58f14a209d3b6e72 (patch)
tree1f5748e7eb588ff872129356187a99592463abf0 /OpenSim/Data
parentFix line endings (diff)
downloadopensim-SC-a9a24062a5622350cd26203f58f14a209d3b6e72.zip
opensim-SC-a9a24062a5622350cd26203f58f14a209d3b6e72.tar.gz
opensim-SC-a9a24062a5622350cd26203f58f14a209d3b6e72.tar.bz2
opensim-SC-a9a24062a5622350cd26203f58f14a209d3b6e72.tar.xz
Plug a security hole in the inventory service
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLInventoryData.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs
index 9d70acb..1a634e5 100644
--- a/OpenSim/Data/MySQL/MySQLInventoryData.cs
+++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs
@@ -794,7 +794,8 @@ namespace OpenSim.Data.MySQL
794 { 794 {
795 dbcon.Open(); 795 dbcon.Open();
796 796
797 using (MySqlCommand cmd = new MySqlCommand("DELETE FROM inventoryfolders WHERE folderID=?uuid", dbcon)) 797 // System folders can never be deleted. Period.
798 using (MySqlCommand cmd = new MySqlCommand("DELETE FROM inventoryfolders WHERE folderID=?uuid and type=-1", dbcon))
798 { 799 {
799 cmd.Parameters.AddWithValue("?uuid", folderID.ToString()); 800 cmd.Parameters.AddWithValue("?uuid", folderID.ToString());
800 801