Commit 090da0b9 authored by 喻春霖's avatar 喻春霖

fixed

parent e314b16b
...@@ -300,12 +300,12 @@ public class AuthController { ...@@ -300,12 +300,12 @@ public class AuthController {
String newUrl = url; String newUrl = url;
StringBuffer param = new StringBuffer(); StringBuffer param = new StringBuffer();
for (String key : data.keySet()) { for (String key : data.keySet()) {
param.append(key + "=" + data.get(key) + "&"); param.append(key + "=" + URLEncoder.encode(data.get(key)) + "&");
} }
String paramStr = param.toString(); String paramStr = param.toString();
paramStr = paramStr.substring(0, paramStr.length() - 1); paramStr = paramStr.substring(0, paramStr.length() - 1);
if (newUrl.indexOf("?") >= 0) { if (newUrl.indexOf("?") >= 0) {
newUrl += "&" + paramStr; newUrl += "&" + paramStr;
} else { } else {
newUrl += "?" + paramStr; newUrl += "?" + paramStr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment