mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Tweaked handler code to recognize LibOMV's LLSD Login by post content.
* OK for public consumption.
This commit is contained in:
@@ -608,6 +608,8 @@ namespace OpenSim.Framework.Servers
|
||||
LLSD llsdRequest = null;
|
||||
LLSD llsdResponse = null;
|
||||
|
||||
bool LegacyLLSDLoginLibOMV = (requestBody.Contains("passwd") && requestBody.Contains("mac") && requestBody.Contains("viewer_digest"));
|
||||
|
||||
try
|
||||
{
|
||||
llsdRequest = LLSDParser.DeserializeXml(requestBody);
|
||||
@@ -622,7 +624,7 @@ namespace OpenSim.Framework.Servers
|
||||
|
||||
LLSDMethod llsdhandler = null;
|
||||
|
||||
if (TryGetLLSDHandler(request.RawUrl, out llsdhandler))
|
||||
if (TryGetLLSDHandler(request.RawUrl, out llsdhandler) && !LegacyLLSDLoginLibOMV)
|
||||
{
|
||||
// we found a registered llsd handler to service this request
|
||||
llsdResponse = llsdhandler(request.RawUrl, llsdRequest, request.RemoteIPEndPoint.ToString());
|
||||
|
||||
Reference in New Issue
Block a user