mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
trim url when preparing it
This commit is contained in:
@ -23,7 +23,7 @@ public final class URLChecker {
|
|||||||
* */
|
* */
|
||||||
public static String prepareURL(String url) {
|
public static String prepareURL(String url) {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
url = url.trim();
|
||||||
if (!url.startsWith("http")) {
|
if (!url.startsWith("http")) {
|
||||||
builder.append("http://");
|
builder.append("http://");
|
||||||
if (AppConfig.DEBUG) Log.d(TAG, "Missing http; appending");
|
if (AppConfig.DEBUG) Log.d(TAG, "Missing http; appending");
|
||||||
|
|||||||
Reference in New Issue
Block a user