The get_grid_info REST call now encodes XML Entities

bulletsim
SignpostMarv Martin 2011-05-13 09:58:29 +01:00 committed by Justin Clark-Casey (justincc)
parent 7a54638b57
commit cb6cd3714e
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ using System.Collections;
using System.IO; using System.IO;
using System.Net; using System.Net;
using System.Reflection; using System.Reflection;
using System.Security;
using System.Text; using System.Text;
using log4net; using log4net;
using Nini.Config; using Nini.Config;
@ -143,7 +144,7 @@ namespace OpenSim.Server.Handlers.Grid
sb.Append("<gridinfo>\n"); sb.Append("<gridinfo>\n");
foreach (string k in _info.Keys) foreach (string k in _info.Keys)
{ {
sb.AppendFormat("<{0}>{1}</{0}>\n", k, _info[k]); sb.AppendFormat("<{0}>{1}</{0}>\n", k, SecurityElement.Escape(_info[k].ToString()));
} }
sb.Append("</gridinfo>\n"); sb.Append("</gridinfo>\n");