diff options
author | Diva Canto | 2011-01-17 11:45:13 -0800 |
---|---|---|
committer | Diva Canto | 2011-01-17 11:45:13 -0800 |
commit | 5e35651efc98fd140a454c2dd6c5e826573f9dd6 (patch) | |
tree | e03b844902b35974a3bba3ec2ce7e063adf1cd0c /OpenSim/Region/CoreModules | |
parent | Account for some component along the way lower-casing the HTTP header keys. (... (diff) | |
download | opensim-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 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs | 12 |
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(); |