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

Fix UtilTest and replace ampersand in method encode too
Thanks !
This commit is contained in:
Olivier Lamy committed 2012-06-14 05:56:56 -07:00
commit 5379a8100c
2 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -678,7 +678,7 @@ public class Util {
for (int i = 0; i < s.length(); i++) {
int c = s.charAt(i);
if (c<128 && c!=' ') {
if (c<128 && (c!=' ' && c!='&')) {
out.append((char) c);
} else {
// 1 char -> UTF8