diff options
author | Melanie | 2010-12-30 01:40:38 +0000 |
---|---|---|
committer | Melanie | 2010-12-30 01:40:38 +0000 |
commit | 3b50066ceb620ec00c50e3ea52be398e9914afdc (patch) | |
tree | af41bb529e93a0d2cf5e2ee002f0231d300c0d16 /OpenSim/Services/HypergridService | |
parent | Implement SendPlacesReply (diff) | |
parent | Implement SendPlacesReply (diff) | |
download | opensim-SC-3b50066ceb620ec00c50e3ea52be398e9914afdc.zip opensim-SC-3b50066ceb620ec00c50e3ea52be398e9914afdc.tar.gz opensim-SC-3b50066ceb620ec00c50e3ea52be398e9914afdc.tar.bz2 opensim-SC-3b50066ceb620ec00c50e3ea52be398e9914afdc.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r-- | OpenSim/Services/HypergridService/GatekeeperService.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs index 4419201..bbddd87 100644 --- a/OpenSim/Services/HypergridService/GatekeeperService.cs +++ b/OpenSim/Services/HypergridService/GatekeeperService.cs | |||
@@ -330,10 +330,12 @@ namespace OpenSim.Services.HypergridService | |||
330 | if (parts.Length < 2) | 330 | if (parts.Length < 2) |
331 | return false; | 331 | return false; |
332 | 332 | ||
333 | string addressee = parts[0]; | 333 | char[] trailing_slash = new char[] { '/' }; |
334 | m_log.DebugFormat("[GATEKEEPER SERVICE]: Verifying {0} against {1}", addressee, m_ExternalName); | 334 | string addressee = parts[0].TrimEnd(trailing_slash); |
335 | string externalname = m_ExternalName.TrimEnd(trailing_slash); | ||
336 | m_log.DebugFormat("[GATEKEEPER SERVICE]: Verifying {0} against {1}", addressee, externalname); | ||
335 | 337 | ||
336 | return string.Equals(addressee, m_ExternalName, StringComparison.OrdinalIgnoreCase); | 338 | return string.Equals(addressee, externalname, StringComparison.OrdinalIgnoreCase); |
337 | } | 339 | } |
338 | 340 | ||
339 | #endregion | 341 | #endregion |