aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2010-01-18 17:24:21 +0000
committerMelanie2010-01-18 17:24:21 +0000
commite3dbd79543b89b5ba13b144644f6f7426bca3963 (patch)
tree0f3f78108903e33f99ddb4a908e1a295aa28d6cc /OpenSim
parentFix a major security problem with osSetDynamicTexture which allowed the delet... (diff)
parentFix a major security problem with osSetDynamicTexture which allowed the delet... (diff)
downloadopensim-SC-e3dbd79543b89b5ba13b144644f6f7426bca3963.zip
opensim-SC-e3dbd79543b89b5ba13b144644f6f7426bca3963.tar.gz
opensim-SC-e3dbd79543b89b5ba13b144644f6f7426bca3963.tar.bz2
opensim-SC-e3dbd79543b89b5ba13b144644f6f7426bca3963.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
index d84f4ea..f15f8f6 100644
--- a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
@@ -87,7 +87,10 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
87 87
88 foreach (IMonitor monitor in m_monitors) 88 foreach (IMonitor monitor in m_monitors)
89 { 89 {
90 if (monitor.ToString() == monID) 90 string elemName = monitor.ToString();
91 if (elemName.StartsWith(monitor.GetType().Namespace))
92 elemName = elemName.Substring(monitor.GetType().Namespace.Length + 1);
93 if (elemName == monID || monitor.ToString() == monID)
91 { 94 {
92 Hashtable ereply3 = new Hashtable(); 95 Hashtable ereply3 = new Hashtable();
93 96
@@ -112,7 +115,11 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
112 string xml = "<data>"; 115 string xml = "<data>";
113 foreach (IMonitor monitor in m_monitors) 116 foreach (IMonitor monitor in m_monitors)
114 { 117 {
115 xml += "<" + monitor.ToString() + ">" + monitor.GetValue() + "</" + monitor.ToString() + ">"; 118 string elemName = monitor.ToString();
119 if (elemName.StartsWith(monitor.GetType().Namespace))
120 elemName = elemName.Substring(monitor.GetType().Namespace.Length + 1);
121
122 xml += "<" + elemName + ">" + monitor.GetValue() + "</" + elemName + ">";
116 } 123 }
117 xml += "</data>"; 124 xml += "</data>";
118 125