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

fixed

parent e314b16b
......@@ -300,12 +300,12 @@ public class AuthController {
String newUrl = url;
StringBuffer param = new StringBuffer();
for (String key : data.keySet()) {
param.append(key + "=" + data.get(key) + "&");
param.append(key + "=" + URLEncoder.encode(data.get(key)) + "&");
}
String paramStr = param.toString();
paramStr = paramStr.substring(0, paramStr.length() - 1);
if (newUrl.indexOf("?") >= 0) {
newUrl += "&" + paramStr;
newUrl += "&" + paramStr;
} else {
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