aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Base
diff options
context:
space:
mode:
authorMelanie2009-12-27 03:31:53 +0000
committerMelanie2009-12-27 03:31:53 +0000
commit9cef5f92a1c3edf2ef475706931f1536f2c8524f (patch)
tree8d467f353c68e3decfd3234c65d23a4f146d6e52 /OpenSim/Server/Base
parentAdd the MySQL presence data module (diff)
downloadopensim-SC_OLD-9cef5f92a1c3edf2ef475706931f1536f2c8524f.zip
opensim-SC_OLD-9cef5f92a1c3edf2ef475706931f1536f2c8524f.tar.gz
opensim-SC_OLD-9cef5f92a1c3edf2ef475706931f1536f2c8524f.tar.bz2
opensim-SC_OLD-9cef5f92a1c3edf2ef475706931f1536f2c8524f.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')
-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 {