From 98fdf504d9833dc8a58b141765378a1167d2c680 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 15 Oct 2008 20:24:44 +0000 Subject: * Truncate outgoing media and music urls to 254 characters. * Hopefully this will resolve http://opensimulator.org/mantis/view.php?id=2383 --- OpenSim/Framework/Util.cs | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'OpenSim/Framework/Util.cs') diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 28c818a..0f0aa47 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -733,46 +733,6 @@ namespace OpenSim.Framework } } -/* 2008-08-28-tyre: Obsolete (see LocalLoginService UserLoginService) - public static string[] ParseStartLocationRequest(string startLocationRequest) - { - string[] returnstring = new string[4]; - // format uri:RegionName&X&Y&Z - returnstring[0] = "last"; - returnstring[1] = "127"; - returnstring[2] = "127"; - returnstring[3] = "0"; - // This is the crappy way of doing it. - - if (startLocationRequest.Contains(":") && startLocationRequest.Contains("&")) - { - //System.Console.WriteLine("StartLocationRequest Contains proper elements"); - - string[] splitstr = startLocationRequest.Split(':'); //,2,StringSplitOptions.RemoveEmptyEntries); - - //System.Console.WriteLine("Found " + splitstr.GetLength(0) + " elements in 1st split result"); - - if (splitstr.GetLength(0) == 2) - { - string[] splitstr2 = splitstr[1].Split('&'); //, 4, StringSplitOptions.RemoveEmptyEntries); - - //System.Console.WriteLine("Found " + splitstr2.GetLength(0) + " elements in 2nd split result"); - - int len = Math.Min(splitstr2.GetLength(0), 4); - - for (int i = 0; i < 4; ++i) - { - if (len > i) - { - returnstring[i] = splitstr2[i]; - } - } - } - } - return returnstring; - } -*/ - public static XmlRpcResponse XmlRpcCommand(string url, string methodName, params object[] args) { return SendXmlRpcCommand(url, methodName, args); -- cgit v1.1