From c362a50e1b259f89718cdee4c2a26187449b0844 Mon Sep 17 00:00:00 2001 From: Matthieu De Beule Date: Thu, 7 Mar 2019 20:53:22 +0100 Subject: [PATCH] Fix #3028: actually use encodedQuery from URLEncoder to avoid encoding issues --- .../de/danoeh/antennapod/fragment/ItunesSearchFragment.java | 3 +-- 1 file changed, 1 insertion(+), 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()