mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
The get_grid_info REST call now encodes XML Entities
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
7a54638b57
commit
cb6cd3714e
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user