aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
authorUbitUmarov2018-01-05 22:37:42 +0000
committerUbitUmarov2018-01-05 22:37:42 +0000
commit875ca104b85dbf48fc0e5035dc2c01b10a61f8e9 (patch)
tree5a48cbd483b57c88d5be9c012e8f28422f3e368f /OpenSim/Framework/Servers
parentMerge branch 'master' into httptests (diff)
parent a few more xml things (diff)
downloadopensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.zip
opensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.tar.gz
opensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.tar.bz2
opensim-SC-875ca104b85dbf48fc0e5035dc2c01b10a61f8e9.tar.xz
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/RestDeserialiseHandler.cs3
-rw-r--r--OpenSim/Framework/Servers/HttpServer/RestSessionService.cs4
2 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/RestDeserialiseHandler.cs b/OpenSim/Framework/Servers/HttpServer/RestDeserialiseHandler.cs
index bd55657..fbc51d5 100644
--- a/OpenSim/Framework/Servers/HttpServer/RestDeserialiseHandler.cs
+++ b/OpenSim/Framework/Servers/HttpServer/RestDeserialiseHandler.cs
@@ -54,6 +54,9 @@ namespace OpenSim.Framework.Servers.HttpServer
54 TRequest deserial; 54 TRequest deserial;
55 using (XmlTextReader xmlReader = new XmlTextReader(request)) 55 using (XmlTextReader xmlReader = new XmlTextReader(request))
56 { 56 {
57 xmlReader.DtdProcessing = DtdProcessing.Prohibit;
58 xmlReader.XmlResolver = null;
59
57 XmlSerializer deserializer = new XmlSerializer(typeof (TRequest)); 60 XmlSerializer deserializer = new XmlSerializer(typeof (TRequest));
58 deserial = (TRequest) deserializer.Deserialize(xmlReader); 61 deserial = (TRequest) deserializer.Deserialize(xmlReader);
59 } 62 }
diff --git a/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs b/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs
index 68073c1..dc720dd 100644
--- a/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs
+++ b/OpenSim/Framework/Servers/HttpServer/RestSessionService.cs
@@ -210,6 +210,8 @@ namespace OpenSim.Framework.Servers.HttpServer
210 { 210 {
211 try 211 try
212 { 212 {
213 xmlReader.DtdProcessing = DtdProcessing.Prohibit;
214 xmlReader.XmlResolver = null;
213 XmlSerializer deserializer = new XmlSerializer(typeof(RestSessionObject<TRequest>)); 215 XmlSerializer deserializer = new XmlSerializer(typeof(RestSessionObject<TRequest>));
214 deserial = (RestSessionObject<TRequest>)deserializer.Deserialize(xmlReader); 216 deserial = (RestSessionObject<TRequest>)deserializer.Deserialize(xmlReader);
215 } 217 }
@@ -269,6 +271,8 @@ namespace OpenSim.Framework.Servers.HttpServer
269 { 271 {
270 try 272 try
271 { 273 {
274 xmlReader.DtdProcessing = DtdProcessing.Prohibit;
275 xmlReader.XmlResolver = null;
272 XmlSerializer deserializer = new XmlSerializer(typeof(TRequest)); 276 XmlSerializer deserializer = new XmlSerializer(typeof(TRequest));
273 deserial = (TRequest)deserializer.Deserialize(xmlReader); 277 deserial = (TRequest)deserializer.Deserialize(xmlReader);
274 } 278 }