diff options
author | SignpostMarv Martin | 2011-05-13 09:58:29 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-05-14 00:31:54 +0100 |
commit | cb6cd3714eb051af23e45c1f4d792d12feb1f4b8 (patch) | |
tree | 62d652a00a532b5e9c108bfdf484bfe9816814f6 /OpenSim/Server/Handlers | |
parent | Swapped the two restart command descriptions each other (diff) | |
download | opensim-SC-cb6cd3714eb051af23e45c1f4d792d12feb1f4b8.zip opensim-SC-cb6cd3714eb051af23e45c1f4d792d12feb1f4b8.tar.gz opensim-SC-cb6cd3714eb051af23e45c1f4d792d12feb1f4b8.tar.bz2 opensim-SC-cb6cd3714eb051af23e45c1f4d792d12feb1f4b8.tar.xz |
The get_grid_info REST call now encodes XML Entities
Diffstat (limited to 'OpenSim/Server/Handlers')
-rw-r--r-- | OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs b/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs index cdab49e..0da9fc1 100644 --- a/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs +++ b/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs | |||
@@ -30,6 +30,7 @@ using System.Collections; | |||
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Net; | 31 | using System.Net; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Security; | ||
33 | using System.Text; | 34 | using System.Text; |
34 | using log4net; | 35 | using log4net; |
35 | using Nini.Config; | 36 | using Nini.Config; |
@@ -143,7 +144,7 @@ namespace OpenSim.Server.Handlers.Grid | |||
143 | sb.Append("<gridinfo>\n"); | 144 | sb.Append("<gridinfo>\n"); |
144 | foreach (string k in _info.Keys) | 145 | foreach (string k in _info.Keys) |
145 | { | 146 | { |
146 | sb.AppendFormat("<{0}>{1}</{0}>\n", k, _info[k]); | 147 | sb.AppendFormat("<{0}>{1}</{0}>\n", k, SecurityElement.Escape(_info[k].ToString())); |
147 | } | 148 | } |
148 | sb.Append("</gridinfo>\n"); | 149 | sb.Append("</gridinfo>\n"); |
149 | 150 | ||