aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Base/ServerUtils.cs
diff options
context:
space:
mode:
authorMelanie2009-12-27 03:31:53 +0000
committerMelanie2010-01-05 03:17:37 +0000
commitcbe434149e79304da9251bfe946f43f6a08c1393 (patch)
treeb4fbdda0b9fb35bcbe27241b5e18c92ff2cae59d /OpenSim/Server/Base/ServerUtils.cs
parentAdd the unfinished XInventoryConnector. Intermediate commit, will NOT compile! (diff)
downloadopensim-SC_OLD-cbe434149e79304da9251bfe946f43f6a08c1393.zip
opensim-SC_OLD-cbe434149e79304da9251bfe946f43f6a08c1393.tar.gz
opensim-SC_OLD-cbe434149e79304da9251bfe946f43f6a08c1393.tar.bz2
opensim-SC_OLD-cbe434149e79304da9251bfe946f43f6a08c1393.tar.xz
Change the signature of the forms requester data in preparation to getting
to where lists can be sent as requests
Diffstat (limited to 'OpenSim/Server/Base/ServerUtils.cs')
-rw-r--r--OpenSim/Server/Base/ServerUtils.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs
index 0964caa..413a078 100644
--- a/OpenSim/Server/Base/ServerUtils.cs
+++ b/OpenSim/Server/Base/ServerUtils.cs
@@ -160,9 +160,9 @@ namespace OpenSim.Server.Base
160 } 160 }
161 } 161 }
162 162
163 public static Dictionary<string, string> ParseQueryString(string query) 163 public static Dictionary<string, object> ParseQueryString(string query)
164 { 164 {
165 Dictionary<string, string> result = new Dictionary<string, string>(); 165 Dictionary<string, object> result = new Dictionary<string, object>();
166 string[] terms = query.Split(new char[] {'&'}); 166 string[] terms = query.Split(new char[] {'&'});
167 167
168 if (terms.Length == 0) 168 if (terms.Length == 0)
@@ -186,17 +186,17 @@ namespace OpenSim.Server.Base
186 return result; 186 return result;
187 } 187 }
188 188
189 public static string BuildQueryString(Dictionary<string, string> data) 189 public static string BuildQueryString(Dictionary<string, object> data)
190 { 190 {
191 string qstring = String.Empty; 191 string qstring = String.Empty;
192 192
193 foreach (KeyValuePair<string, string> kvp in data) 193 foreach (KeyValuePair<string, object> kvp in data)
194 { 194 {
195 string part; 195 string part;
196 if (kvp.Value != String.Empty) 196 if (kvp.Value.ToString() != String.Empty)
197 { 197 {
198 part = System.Web.HttpUtility.UrlEncode(kvp.Key) + 198 part = System.Web.HttpUtility.UrlEncode(kvp.Key) +
199 "=" + System.Web.HttpUtility.UrlEncode(kvp.Value); 199 "=" + System.Web.HttpUtility.UrlEncode(kvp.Value.ToString());
200 } 200 }
201 else 201 else
202 { 202 {