提交 bdaf5ead 编写于 作者: O Olivier Lamy

Merge pull request #494 from lvotypko/url-without-ampersand

Do not use & in url
Thanks
......@@ -710,7 +710,7 @@ public class Util {
// Encode control chars and space
for (i = 0; i < 33; i++) uriMap[i] = true;
for (int j = 0; j < raw.length(); i++, j++)
uriMap[i] = (raw.charAt(j) == ' ');
uriMap[i] = (raw.charAt(j) == ' ' || raw.charAt(j) =='&');
// If we add encodeQuery() just add a 2nd map to encode &+=
// queryMap[38] = queryMap[43] = queryMap[61] = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册