From 468b7426c37ec2f431355e07b7eb95baf95967ec Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 19 Sep 2008 01:36:02 +0000 Subject: * Tweaked handler code to recognize LibOMV's LLSD Login by post content. * OK for public consumption. --- OpenSim/Framework/Servers/BaseHttpServer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 7bf8a3c..69fc4ad 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -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()); -- cgit v1.1