trim url when preparing it
This commit is contained in:
parent
1872cd9c07
commit
c23727e40c
|
@ -23,7 +23,7 @@ public final class URLChecker {
|
|||
* */
|
||||
public static String prepareURL(String url) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
url = url.trim();
|
||||
if (!url.startsWith("http")) {
|
||||
builder.append("http://");
|
||||
if (AppConfig.DEBUG) Log.d(TAG, "Missing http; appending");
|
||||
|
|
Loading…
Reference in New Issue