diff --git a/core/src/main/java/de/danoeh/antennapod/core/glide/ApOkHttpUrlLoader.java b/core/src/main/java/de/danoeh/antennapod/core/glide/ApOkHttpUrlLoader.java index 2e742e979..b75e1630c 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/glide/ApOkHttpUrlLoader.java +++ b/core/src/main/java/de/danoeh/antennapod/core/glide/ApOkHttpUrlLoader.java @@ -139,6 +139,11 @@ class ApOkHttpUrlLoader implements ModelLoader { // add authentication String[] auth = authentication.split(":"); + if (auth.length != 2) { + Log.d(TAG, "Invalid credentials for '" + url + "'"); + return chain.proceed(request); + } + String credentials = HttpDownloader.encodeCredentials(auth[0], auth[1], "ISO-8859-1"); Request newRequest = request .newBuilder()