The get_grid_info REST call now encodes XML Entities

0.7.1-dev
SignpostMarv Martin 2011-05-13 09:58:29 +01:00 committed by Justin Clark-Casey (justincc)
parent e89b77423f
commit 38e6571a1b
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ using System.Collections;
using System.IO;
using System.Net;
using System.Reflection;
using System.Security;
using System.Text;
using log4net;
using Nini.Config;
@ -143,7 +144,7 @@ namespace OpenSim.Server.Handlers.Grid
sb.Append("<gridinfo>\n");
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");