trim url when preparing it

This commit is contained in:
daniel oeh 2012-09-23 13:40:19 +02:00
parent 1872cd9c07
commit c23727e40c
1 changed files with 1 additions and 1 deletions

View File

@ -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");