aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseHttpServer.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-08-26 05:41:07 +0000
committerTeravus Ovares2008-08-26 05:41:07 +0000
commit1015ca38636b550500719375168646d741f89db1 (patch)
tree1d53b770647536d32ecdd9d6e0fa79307060a55f /OpenSim/Framework/Servers/BaseHttpServer.cs
parent* Workaround for application/llsd+xml requests coming in as application/xml (diff)
downloadopensim-SC-1015ca38636b550500719375168646d741f89db1.zip
opensim-SC-1015ca38636b550500719375168646d741f89db1.tar.gz
opensim-SC-1015ca38636b550500719375168646d741f89db1.tar.bz2
opensim-SC-1015ca38636b550500719375168646d741f89db1.tar.xz
* It turns out that Mono doesn't currently support setting the Certificate validation handler, however, it throws a NotImplemented exception.
* Added Try/Catch/Message
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index 13c5752..303ce64 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -559,7 +559,8 @@ namespace OpenSim.Framework.Servers
559 559
560 foreach (string pattern in m_llsdHandlers.Keys) 560 foreach (string pattern in m_llsdHandlers.Keys)
561 { 561 {
562 if (searchquery.StartsWith(searchquery)) 562
563 if (pattern.StartsWith(searchquery) && searchquery.Length >= pattern.Length)
563 { 564 {
564 if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length) 565 if (String.IsNullOrEmpty(bestMatch) || searchquery.Length > bestMatch.Length)
565 { 566 {
@@ -568,6 +569,10 @@ namespace OpenSim.Framework.Servers
568 } 569 }
569 } 570 }
570 571
572 // extra kicker to remove the default XMLRPC login case.. just in case..
573 if (path == "/")
574 return false;
575
571 if (String.IsNullOrEmpty(bestMatch)) 576 if (String.IsNullOrEmpty(bestMatch))
572 { 577 {
573 578