mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Normalized ALL URLs with trailing /'s hopefully. Fixed show hyperlinks command. mantis #5259
This commit is contained in:
@@ -772,6 +772,8 @@ namespace OpenSim.Services.LLLoginService
|
||||
{
|
||||
aCircuit.ServiceURLs[kvp.Key] = kvp.Value;
|
||||
}
|
||||
if (!aCircuit.ServiceURLs[kvp.Key].ToString().EndsWith("/"))
|
||||
aCircuit.ServiceURLs[kvp.Key] = aCircuit.ServiceURLs[kvp.Key] + "/";
|
||||
}
|
||||
|
||||
// New style: service keys start with SRV_; override the previous
|
||||
@@ -784,6 +786,9 @@ namespace OpenSim.Services.LLLoginService
|
||||
{
|
||||
string keyName = serviceKey.Replace("SRV_", "");
|
||||
aCircuit.ServiceURLs[keyName] = m_LoginServerConfig.GetString(serviceKey, string.Empty);
|
||||
if (!aCircuit.ServiceURLs[keyName].ToString().EndsWith("/"))
|
||||
aCircuit.ServiceURLs[keyName] = aCircuit.ServiceURLs[keyName] + "/";
|
||||
|
||||
m_log.DebugFormat("[LLLOGIN SERVICE]: found new key {0} {1}", keyName, aCircuit.ServiceURLs[keyName]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user