diff options
author | Selim Gurun <sgurun@google.com> | 2012-06-14 10:33:37 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-06-14 10:33:37 -0700 |
commit | 7bdd187c26e5eb304aaa71d0812d33804408a7e5 (patch) | |
tree | 081e637e2388e2859e545b04562b3831ae8ceb0d /src/com/android/browser/DownloadHandler.java | |
parent | 170b2a9d197c5597cf7a4e163eaabf9c4e0a800c (diff) | |
parent | 17e3ba9b808c0ca3b4a06c3964437204e76f9d30 (diff) | |
download | packages_apps_Browser-7bdd187c26e5eb304aaa71d0812d33804408a7e5.zip packages_apps_Browser-7bdd187c26e5eb304aaa71d0812d33804408a7e5.tar.gz packages_apps_Browser-7bdd187c26e5eb304aaa71d0812d33804408a7e5.tar.bz2 |
am 17e3ba9b: am a770f8d4: Encode characters that java.net.URI rejects
* commit '17e3ba9b808c0ca3b4a06c3964437204e76f9d30':
Encode characters that java.net.URI rejects
Diffstat (limited to 'src/com/android/browser/DownloadHandler.java')
-rw-r--r-- | src/com/android/browser/DownloadHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/browser/DownloadHandler.java b/src/com/android/browser/DownloadHandler.java index 2fc8631..2292716 100644 --- a/src/com/android/browser/DownloadHandler.java +++ b/src/com/android/browser/DownloadHandler.java @@ -106,7 +106,7 @@ public class DownloadHandler { boolean needed = false; for (char c : chars) { - if (c == '[' || c == ']') { + if (c == '[' || c == ']' || c == '|') { needed = true; break; } @@ -117,7 +117,7 @@ public class DownloadHandler { StringBuilder sb = new StringBuilder(""); for (char c : chars) { - if (c == '[' || c == ']') { + if (c == '[' || c == ']' || c == '|') { sb.append('%'); sb.append(Integer.toHexString(c)); } else { |