diff options
author | root | 2019-03-11 23:40:55 +0000 |
---|---|---|
committer | root | 2019-03-11 23:40:55 +0000 |
commit | 0a4f0758fa4279739b09ff3002b2fa9f2d81dcc4 (patch) | |
tree | 5299e81edec48fa2e6a9511d7f4244a55f7d6e68 | |
parent | Fix multi, and single tenancy on MapGet (diff) | |
download | opensim-SC-0a4f0758fa4279739b09ff3002b2fa9f2d81dcc4.zip opensim-SC-0a4f0758fa4279739b09ff3002b2fa9f2d81dcc4.tar.gz opensim-SC-0a4f0758fa4279739b09ff3002b2fa9f2d81dcc4.tar.bz2 opensim-SC-0a4f0758fa4279739b09ff3002b2fa9f2d81dcc4.tar.xz |
Should have been in the last commit
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/Map/MapGetServerConnector.cs | 15 |
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) |