diff options
author | Matthieu De Beule <matthieu.de@beule.be> | 2019-03-07 20:53:22 +0100 |
---|---|---|
committer | Matthieu De Beule <matthieu.de@beule.be> | 2019-03-07 20:53:22 +0100 |
commit | c362a50e1b259f89718cdee4c2a26187449b0844 (patch) | |
tree | 0fe0389d8b862dda371edf974084cd401d5b7a50 | |
parent | c1bfb9183c51f8676914a7a9cb601ce560294599 (diff) | |
download | AntennaPod-c362a50e1b259f89718cdee4c2a26187449b0844.zip |
Fix #3028: actually use encodedQuery from URLEncoder to avoid encoding issues
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItunesSearchFragment.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItunesSearchFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItunesSearchFragment.java index a0e2ca22a..486727313 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItunesSearchFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItunesSearchFragment.java @@ -311,8 +311,7 @@ public class ItunesSearchFragment extends Fragment { encodedQuery = query; // failsafe } - //Spaces in the query need to be replaced with '+' character. - String formattedUrl = String.format(API_URL, query).replace(' ', '+'); + String formattedUrl = String.format(API_URL, encodedQuery); OkHttpClient client = AntennapodHttpClient.getHttpClient(); Request.Builder httpReq = new Request.Builder() |