Change the signature of the forms requester data in preparation to getting

to where lists can be sent as requests
This commit is contained in:
Melanie
2009-12-27 03:31:53 +00:00
parent 831f759644
commit 9cef5f92a1
6 changed files with 74 additions and 74 deletions

View File

@@ -160,9 +160,9 @@ namespace OpenSim.Server.Base
}
}
public static Dictionary<string, string> ParseQueryString(string query)
public static Dictionary<string, object> ParseQueryString(string query)
{
Dictionary<string, string> result = new Dictionary<string, string>();
Dictionary<string, object> result = new Dictionary<string, object>();
string[] terms = query.Split(new char[] {'&'});
if (terms.Length == 0)
@@ -186,17 +186,17 @@ namespace OpenSim.Server.Base
return result;
}
public static string BuildQueryString(Dictionary<string, string> data)
public static string BuildQueryString(Dictionary<string, object> data)
{
string qstring = String.Empty;
foreach (KeyValuePair<string, string> kvp in data)
foreach (KeyValuePair<string, object> kvp in data)
{
string part;
if (kvp.Value != String.Empty)
if (kvp.Value.ToString() != String.Empty)
{
part = System.Web.HttpUtility.UrlEncode(kvp.Key) +
"=" + System.Web.HttpUtility.UrlEncode(kvp.Value);
"=" + System.Web.HttpUtility.UrlEncode(kvp.Value.ToString());
}
else
{