mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-05 21:13:45 +01:00
Merge pull request #3055 from matdb/develop
Fix #3028: actually use encodedQuery from URLEncoder to avoid encoding issues
This commit is contained in:
commit
2818bb62ab
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user