fixes a problem with ending slashes in GatekeeperService to verify session-addresses

viewer-2-initial-appearance
Myan Thor 2010-12-29 13:40:47 +01:00 committed by Diva Canto
parent 94ed69b1da
commit 915c0b17b0
1 changed files with 5 additions and 3 deletions

View File

@ -330,10 +330,12 @@ namespace OpenSim.Services.HypergridService
if (parts.Length < 2)
return false;
string addressee = parts[0];
m_log.DebugFormat("[GATEKEEPER SERVICE]: Verifying {0} against {1}", addressee, m_ExternalName);
char[] trailing_slash = new char[] { '/' };
string addressee = parts[0].TrimEnd(trailing_slash);
string externalname = m_ExternalName.TrimEnd(trailing_slash);
m_log.DebugFormat("[GATEKEEPER SERVICE]: Verifying {0} against {1}", addressee, externalname);
return string.Equals(addressee, m_ExternalName, StringComparison.OrdinalIgnoreCase);
return string.Equals(addressee, externalname, StringComparison.OrdinalIgnoreCase);
}
#endregion