aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapGetServerConnector.cs')
-rw-r--r--OpenSim/Server/Handlers/Map/MapGetServerConnector.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
index 1ae669c..017927a 100644
--- a/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapGetServerConnector.cs
@@ -98,11 +98,20 @@ namespace OpenSim.Server.Handlers.MapImage
98// UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992"); 98// UUID scopeID = new UUID("07f8d88e-cd5e-4239-a0ed-843f75d09992");
99 UUID scopeID = UUID.Zero; 99 UUID scopeID = UUID.Zero;
100 100
101 // This will be map/tilefile.ext, but on multitenancy it will be
102 // map/scope/teilefile.ext
101 string[] bits = path.Trim('/').Split(new char[] {'/'}); 103 string[] bits = path.Trim('/').Split(new char[] {'/'});
102 if (bits.Length > 1) 104 if (bits.Length > 2)
103 { 105 {
104 scopeID = new UUID(bits[0]); 106 try
105 path = bits[1]; 107 {
108 scopeID = new UUID(bits[1]);
109 }
110 catch
111 {
112 return new byte[9];
113 }
114 path = bits[2];
106 } 115 }
107 result = m_MapService.GetMapTile(path.Trim('/'), scopeID, out format); 116 result = m_MapService.GetMapTile(path.Trim('/'), scopeID, out format);
108 if (result.Length > 0) 117 if (result.Length > 0)