aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDiva Canto2011-01-17 11:45:13 -0800
committerDiva Canto2011-01-17 11:45:13 -0800
commit5e35651efc98fd140a454c2dd6c5e826573f9dd6 (patch)
treee03b844902b35974a3bba3ec2ce7e063adf1cd0c
parentAccount for some component along the way lower-casing the HTTP header keys. (... (diff)
downloadopensim-SC-5e35651efc98fd140a454c2dd6c5e826573f9dd6.zip
opensim-SC-5e35651efc98fd140a454c2dd6c5e826573f9dd6.tar.gz
opensim-SC-5e35651efc98fd140a454c2dd6c5e826573f9dd6.tar.bz2
opensim-SC-5e35651efc98fd140a454c2dd6c5e826573f9dd6.tar.xz
Protect World Map module, RequestMapItemsAsync, from badly formed URLs.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index f9d28b9..e0f36a2 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -641,7 +641,17 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
641 lock (m_openRequests) 641 lock (m_openRequests)
642 m_openRequests.Add(requestID, mrs); 642 m_openRequests.Add(requestID, mrs);
643 643
644 WebRequest mapitemsrequest = WebRequest.Create(httpserver); 644 WebRequest mapitemsrequest = null;
645 try
646 {
647 mapitemsrequest = WebRequest.Create(httpserver);
648 }
649 catch (Exception e)
650 {
651 m_log.DebugFormat("[WORLD MAP]: Access to {0} failed with {1}", httpserver, e);
652 return new OSDMap();
653 }
654
645 mapitemsrequest.Method = "POST"; 655 mapitemsrequest.Method = "POST";
646 mapitemsrequest.ContentType = "application/xml+llsd"; 656 mapitemsrequest.ContentType = "application/xml+llsd";
647 OSDMap RAMap = new OSDMap(); 657 OSDMap RAMap = new OSDMap();